Github user rfer commented on a diff in the pull request:
https://github.com/apache/curator/pull/54#discussion_r20473248
--- 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 --
Yes, that makes sense. I updated the change. In order to avoid code
duplication and multiple StringBuilder instantiations, I've added a new
auxiliary method that mutates a StringBuilder passd as an argument.
---
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.
---