Permalink
Browse files

GIRAPH-175. Replace manual array copy to utility method call. Contrib…

…uted by Devaraj K.

git-svn-id: https://svn.apache.org/repos/asf/incubator/giraph/trunk@1327344 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 6861c18 commit 6f8296d9e3f0e23fb69999f61a8161b1f5e8b13b @jghoman jghoman committed Apr 18, 2012
Showing with 4 additions and 3 deletions.
  1. +3 −0 CHANGELOG
  2. +1 −3 src/main/java/org/apache/giraph/zk/ZooKeeperManager.java
View
@@ -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)
@@ -597,9 +597,7 @@ public void onlineZooKeeperServers() {
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));

0 comments on commit 6f8296d

Please sign in to comment.