Github user dragonsinth commented on a diff in the pull request:
https://github.com/apache/curator/pull/54#discussion_r20450851
--- Diff:
curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java ---
@@ -276,26 +282,26 @@ public static void deleteChildren(ZooKeeper
zookeeper, String path, boolean dele
Collections.sort(sortedList);
return sortedList;
}
-
+
/**
- * Given a parent path and a child node, create a combined full path
+ * Given a parent path and a list of children nodes, create a combined
full path
*
* @param parent the parent
- * @param child the child
+ * @param children the children
* @return full path
*/
- public static String makePath(String parent, String child)
+ public static String makePath(String parent, String... children)
--- End diff --
I would probably make 2 overloads here:
`makePath(String, String)`
`makePath(String, String, String...)`
1) Preserve binary compatibility; changing the last to a vararg breaks
binary compat if you don't recompile client code.
2) Not introduce the extra array allocation for the most common 2-arg case.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---