curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cammcken...@apache.org
Subject [2/3] git commit: CURATOR-116 - Made the getDelay() method private, as it does not need to be protected.
Date Tue, 08 Jul 2014 01:26:11 GMT
CURATOR-116 - Made the getDelay() method private, as it does not need to
be protected.

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

Branch: refs/heads/master
Commit: fdc5600953c29e0cdcfe16396b27d1b447e13380
Parents: 1103f47
Author: Cameron McKenzie <cameron@unico.com.au>
Authored: Thu Jun 26 08:51:58 2014 +1000
Committer: Cameron McKenzie <cameron@unico.com.au>
Committed: Thu Jun 26 08:51:58 2014 +1000

----------------------------------------------------------------------
 .../curator/framework/recipes/queue/DistributedDelayQueue.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/fdc56009/curator-recipes/src/main/java/org/apache/curator/framework/recipes/queue/DistributedDelayQueue.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/queue/DistributedDelayQueue.java
b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/queue/DistributedDelayQueue.java
index bd90e71..ff39f42 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/queue/DistributedDelayQueue.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/queue/DistributedDelayQueue.java
@@ -83,7 +83,7 @@ public class DistributedDelayQueue<T> implements Closeable, QueueBase<T>
                 return getDelay(itemNode, System.currentTimeMillis());
             }
             
-            protected long getDelay(String itemNode, long sortTime)
+            private long getDelay(String itemNode, long sortTime)
             {               
                 long epoch = getEpoch(itemNode);
                 return epoch - sortTime;


Mime
View raw message