hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1332852 - /incubator/hama/trunk/examples/src/main/java/org/apache/hama/examples/SuperstepPiEstimator.java
Date Tue, 01 May 2012 21:46:08 GMT
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();
         }
 



Mime
View raw message