SimplePageRankVertex has two redundant casts
--------------------------------------------

                 Key: GIRAPH-177
                 URL: https://issues.apache.org/jira/browse/GIRAPH-177
             Project: Giraph
          Issue Type: Improvement
            Reporter: Jakob Homan
            Priority: Trivial


{code}        DoubleWritable maxPagerank =
            (DoubleWritable) maxAggreg.getAggregatedValue();
        LOG.info("aggregatedMaxPageRank=" + maxPagerank.get());
        DoubleWritable minPagerank =
            (DoubleWritable) minAggreg.getAggregatedValue();
        LOG.info("aggregatedMinPageRank=" + minPagerank.get());{code}
Both MinAggregator and MaxAggregator are already parameterized on 
DoubleWritable, so it's not necessary to cast their functions' results.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to