use local var data

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

Branch: refs/heads/CURATOR-3.0
Commit: f89c1ea5336bbde932638a2a28d678b231a2e49b
Parents: 1826b66
Author: randgalt <randg...@apache.org>
Authored: Mon Apr 3 11:31:49 2017 -0500
Committer: randgalt <randg...@apache.org>
Committed: Mon Apr 3 11:31:49 2017 -0500

----------------------------------------------------------------------
 .../java/org/apache/curator/framework/imps/CreateBuilderImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/f89c1ea5/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
----------------------------------------------------------------------
diff --git 
a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
 
b/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
index b7d68e8..718dded 100644
--- 
a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
+++ 
b/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
@@ -567,7 +567,7 @@ public class CreateBuilderImpl implements CreateBuilder, 
CreateBuilder2, Backgro
             client.getZooKeeper().create
             (
                 operationAndData.getData().getPath(),
-                operationAndData.getData().getData(),
+                data,
                 acling.getAclList(operationAndData.getData().getPath()),
                 createMode,
                 new AsyncCallback.Create2Callback() {

Reply via email to