Return-Path: X-Original-To: apmail-curator-commits-archive@minotaur.apache.org Delivered-To: apmail-curator-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 723571137F for ; Fri, 23 May 2014 15:07:03 +0000 (UTC) Received: (qmail 8517 invoked by uid 500); 23 May 2014 15:07:03 -0000 Delivered-To: apmail-curator-commits-archive@curator.apache.org Received: (qmail 8449 invoked by uid 500); 23 May 2014 15:07:03 -0000 Mailing-List: contact commits-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list commits@curator.apache.org Received: (qmail 8098 invoked by uid 99); 23 May 2014 15:07:03 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 15:07:03 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E76C09A47CA; Fri, 23 May 2014 15:07:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: randgalt@apache.org To: commits@curator.apache.org Date: Fri, 23 May 2014 15:07:23 -0000 Message-Id: <318195de12774901bbe9bab24cb1bb7b@git.apache.org> In-Reply-To: <4c52c9a752f84f3cb1c1fa8c60e52b3d@git.apache.org> References: <4c52c9a752f84f3cb1c1fa8c60e52b3d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [22/29] git commit: data isn't used data isn't used Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/c6700f0b Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/c6700f0b Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/c6700f0b Branch: refs/heads/CURATOR-105 Commit: c6700f0bea33c3daf5fb0f5f5890fae627cf908e Parents: ac57e11 Author: randgalt Authored: Thu May 22 17:54:06 2014 -0500 Committer: randgalt Committed: Thu May 22 17:54:06 2014 -0500 ---------------------------------------------------------------------- .../apache/curator/framework/recipes/locks/LockInternals.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/c6700f0b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/LockInternals.java ---------------------------------------------------------------------- diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/LockInternals.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/LockInternals.java index d6298ce..0f7460f 100644 --- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/LockInternals.java +++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/LockInternals.java @@ -26,13 +26,12 @@ import org.apache.curator.RetryLoop; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.api.CuratorWatcher; import org.apache.curator.framework.imps.CuratorFrameworkState; +import org.apache.curator.utils.PathUtils; import org.apache.curator.utils.ZKPaths; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; -import org.apache.curator.utils.PathUtils; -import org.apache.zookeeper.data.Stat; import java.util.Arrays; import java.util.Collection; import java.util.Collections; @@ -297,7 +296,7 @@ public class LockInternals { try { - byte[] data = client.getData().usingWatcher(watcher).forPath(previousSequencePath); + client.getData().usingWatcher(watcher).forPath(previousSequencePath); if ( millisToWait != null ) { millisToWait -= (System.currentTimeMillis() - startMillis);