old withOptions can call new withOptions

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

Branch: refs/heads/master
Commit: f898959e42990a7f98cbe0eff9e79a432a9047c9
Parents: d7d84c5
Author: randgalt <[email protected]>
Authored: Wed May 3 21:53:21 2017 -0500
Committer: randgalt <[email protected]>
Committed: Wed May 3 21:53:21 2017 -0500

----------------------------------------------------------------------
 .../apache/curator/x/async/details/AsyncTransactionOpImpl.java  | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/f898959e/curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncTransactionOpImpl.java
----------------------------------------------------------------------
diff --git 
a/curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncTransactionOpImpl.java
 
b/curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncTransactionOpImpl.java
index 45c0205..7b158f8 100644
--- 
a/curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncTransactionOpImpl.java
+++ 
b/curator-x-async/src/main/java/org/apache/curator/x/async/details/AsyncTransactionOpImpl.java
@@ -87,10 +87,7 @@ class AsyncTransactionOpImpl implements AsyncTransactionOp
             @Override
             public AsyncPathAndBytesable<CuratorOp> withOptions(CreateMode 
createMode, List<ACL> aclList, boolean compressed)
             {
-                this.createMode = Objects.requireNonNull(createMode, 
"createMode cannot be null");
-                this.aclList = aclList;
-                this.compressed = compressed;
-                return this;
+                return withOptions(createMode, aclList, compressed, ttl);
             }
 
             @Override

Reply via email to