CURATOR-228 - Remove public access from the isAuthFailure method.

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

Branch: refs/heads/CURATOR-3.0
Commit: cff86ead3385cf9dfd74b966906d9b3213bebf87
Parents: ecf67df
Author: Cam McKenzie <cammcken...@apache.org>
Authored: Thu Jul 23 15:59:13 2015 +1000
Committer: Cam McKenzie <cammcken...@apache.org>
Committed: Thu Jul 23 15:59:13 2015 +1000

----------------------------------------------------------------------
 .../curator/framework/recipes/nodes/PersistentEphemeralNode.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/cff86ead/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
----------------------------------------------------------------------
diff --git 
a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
 
b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
index 35e18a5..11568c1 100644
--- 
a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
+++ 
b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java
@@ -19,6 +19,7 @@
 
 package org.apache.curator.framework.recipes.nodes;
 
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Preconditions;
 
 import org.apache.curator.framework.CuratorFramework;
@@ -416,7 +417,8 @@ public class PersistentEphemeralNode implements Closeable
         return (state.get() == State.STARTED);
     }
     
-    public boolean isAuthFailure()
+    @VisibleForTesting
+    boolean isAuthFailure()
     {
        return authFailure.get();
     }

Reply via email to