You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2014/12/30 20:23:00 UTC

[2/3] curator git commit: Have addPath() return this

Have addPath() return this


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/f95b90a4
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/f95b90a4
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/f95b90a4

Branch: refs/heads/master
Commit: f95b90a4e004e03dccff2045f961208194ce7291
Parents: 915d66f
Author: randgalt <ra...@apache.org>
Authored: Wed Dec 10 09:40:38 2014 -0500
Committer: randgalt <ra...@apache.org>
Committed: Wed Dec 10 09:40:38 2014 -0500

----------------------------------------------------------------------
 .../org/apache/curator/framework/recipes/locks/ChildReaper.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/f95b90a4/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
index 4c254ac..ae2fc91 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
@@ -154,10 +154,12 @@ public class ChildReaper implements Closeable
      * Add a path to reap children from
      *
      * @param path the path
+     * @return this for chaining
      */
-    public void addPath(String path)
+    public ChildReaper addPath(String path)
     {
         paths.add(PathUtils.validatePath(path));
+        return this;
     }
 
     /**