Author: tommaso Date: Tue May 1 21:46:08 2012 New Revision: 1332852 URL: http://svn.apache.org/viewvc?rev=1332852&view=rev Log: removing useless cast in SuperstepPiEstimator
Modified: incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/SuperstepPiEstimator.java Modified: incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/SuperstepPiEstimator.java URL: http://svn.apache.org/viewvc/incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/SuperstepPiEstimator.java?rev=1332852&r1=1332851&r2=1332852&view=diff ============================================================================== --- incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/SuperstepPiEstimator.java (original) +++ incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/SuperstepPiEstimator.java Tue May 1 21:46:08 2012 @@ -94,7 +94,7 @@ public class SuperstepPiEstimator { double pi = 0.0; int numPeers = peer.getNumCurrentMessages(); DoubleMessage received; - while ((received = (DoubleMessage) peer.getCurrentMessage()) != null) { + while ((received = peer.getCurrentMessage()) != null) { pi += received.getData(); }