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 0266F18FFC for ; Mon, 10 Aug 2015 21:48:48 +0000 (UTC) Received: (qmail 37865 invoked by uid 500); 10 Aug 2015 21:48:47 -0000 Delivered-To: apmail-curator-commits-archive@curator.apache.org Received: (qmail 37834 invoked by uid 500); 10 Aug 2015 21:48:47 -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 37816 invoked by uid 99); 10 Aug 2015 21:48:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2015 21:48:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BD333E1144; Mon, 10 Aug 2015 21:48:47 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: cammckenzie@apache.org To: commits@curator.apache.org Date: Mon, 10 Aug 2015 21:48:48 -0000 Message-Id: In-Reply-To: <134a6fa8b494486b9d78092a68598d6f@git.apache.org> References: <134a6fa8b494486b9d78092a68598d6f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] curator git commit: Make getData private and access data directly in setData Make getData private and access data directly in setData Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/5cfa4839 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/5cfa4839 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/5cfa4839 Branch: refs/heads/CURATOR-241 Commit: 5cfa4839e0798249d32b34b792b5f59f111dd022 Parents: 7fd4034 Author: Alex Brasetvik Authored: Mon Aug 3 01:52:51 2015 +0200 Committer: Alex Brasetvik Committed: Mon Aug 3 01:52:51 2015 +0200 ---------------------------------------------------------------------- .../curator/framework/recipes/nodes/PersistentEphemeralNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/5cfa4839/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 1011ad5..7a2ab73 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 @@ -338,11 +338,11 @@ public class PersistentEphemeralNode implements Closeable this.data.set(Arrays.copyOf(data, data.length)); if ( isActive() ) { - client.setData().inBackground().forPath(getActualPath(), getData()); + client.setData().inBackground().forPath(getActualPath(), this.data.get()); } } - byte[] getData() { + private byte[] getData() { return this.data.get(); }