Author: jghoman
Date: Wed Apr 18 01:00:29 2012
New Revision: 1327344

URL: http://svn.apache.org/viewvc?rev=1327344&view=rev
Log:
GIRAPH-175. Replace manual array copy to utility method call. Contributed by 
Devaraj K.

Modified:
    incubator/giraph/trunk/CHANGELOG
    
incubator/giraph/trunk/src/main/java/org/apache/giraph/zk/ZooKeeperManager.java

Modified: incubator/giraph/trunk/CHANGELOG
URL: 
http://svn.apache.org/viewvc/incubator/giraph/trunk/CHANGELOG?rev=1327344&r1=1327343&r2=1327344&view=diff
==============================================================================
--- incubator/giraph/trunk/CHANGELOG (original)
+++ incubator/giraph/trunk/CHANGELOG Wed Apr 18 01:00:29 2012
@@ -2,6 +2,9 @@ Giraph Change Log
 
 Release 0.2.0 - unreleased
 
+  GIRAPH-175. Replace manual array copy to utility method call.
+  (Devaraj K via jghoman)
+
   GIRAPH-181: Add Hadoop 1.0 profile to pom.xml. (ekoontz via aching)
 
   GIRAPH-183: Add Claudio's FOSDEM presentation (slides and video) 

Modified: 
incubator/giraph/trunk/src/main/java/org/apache/giraph/zk/ZooKeeperManager.java
URL: 
http://svn.apache.org/viewvc/incubator/giraph/trunk/src/main/java/org/apache/giraph/zk/ZooKeeperManager.java?rev=1327344&r1=1327343&r2=1327344&view=diff
==============================================================================
--- 
incubator/giraph/trunk/src/main/java/org/apache/giraph/zk/ZooKeeperManager.java 
(original)
+++ 
incubator/giraph/trunk/src/main/java/org/apache/giraph/zk/ZooKeeperManager.java 
Wed Apr 18 01:00:29 2012
@@ -597,9 +597,7 @@ public class ZooKeeperManager {
               GiraphJob.ZOOKEEPER_JAVA_OPTS_DEFAULT);
       String[] zkJavaOptsArray = zkJavaOptsString.split(" ");
       if (zkJavaOptsArray != null) {
-        for (String javaOpt : zkJavaOptsArray) {
-          commandList.add(javaOpt);
-        }
+        commandList.addAll(Arrays.asList(zkJavaOptsArray));
       }
       commandList.add("-cp");
       Path fullJarPath = new Path(conf.get(GiraphJob.ZOOKEEPER_JAR));


Reply via email to