curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject curator git commit: Have addPath() return this
Date Wed, 10 Dec 2014 14:40:45 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-170 915d66f90 -> f95b90a4e


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/CURATOR-170
Commit: f95b90a4e004e03dccff2045f961208194ce7291
Parents: 915d66f
Author: randgalt <randgalt@apache.org>
Authored: Wed Dec 10 09:40:38 2014 -0500
Committer: randgalt <randgalt@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;
     }
 
     /**


Mime
View raw message