hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1671493 - /hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java
Date Mon, 06 Apr 2015 07:34:07 GMT
Author: edwardyoon
Date: Mon Apr  6 07:34:07 2015
New Revision: 1671493

URL: http://svn.apache.org/r1671493
Log:
convert int to text using String.valueOf().

Modified:
    hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java

Modified: hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java
URL: http://svn.apache.org/viewvc/hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java?rev=1671493&r1=1671492&r2=1671493&view=diff
==============================================================================
--- hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java (original)
+++ hama/trunk/examples/src/main/java/org/apache/hama/examples/util/FastGraphGen.java Mon
Apr  6 07:34:07 2015
@@ -83,10 +83,10 @@ public class FastGraphGen {
         Text[] arr = new Text[set.size()];
         int index = 0;
         for (int x : set) {
-          arr[index++] = new Text(x + "");
+          arr[index++] = new Text(String.valueOf(x));
         }
         textArrayWritable.set(arr);
-        peer.write(new Text(i + ""), textArrayWritable);
+        peer.write(new Text(String.valueOf(i)), textArrayWritable);
       }
 
     }



Mime
View raw message