diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ba28feaf1..cb476fe37 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,32 +1,32 @@ [versions] grpc = "1.55.1" log4j = "2.20.0" -mockito = "5.1.1" +mockito = "5.3.1" slf4j = "2.0.7" -guava = "31.1-jre" +guava = "32.0.0-jre" assertj = "3.24.2" -junit = "5.9.2" -testcontainers = "1.17.6" +junit = "5.9.3" +testcontainers = "1.18.1" protoc = "3.21.10" failsafe = "2.4.4" awaitility = "4.2.0" -commonsIo = "2.11.0" -commonCompress = "1.22" +commonsIo = "2.12.0" +commonCompress = "1.23.0" autoService = "1.1.0" -jool = "0.9.14" +jool = "0.9.15" jcommander = "1.82" errorprone = "2.19.1" vertx = "4.4.2" versionsPlugin = "0.46.0" -errorPronePlugin = "3.0.1" -spotlessPlugin = "6.16.0" -shadowPlugin = "8.1.0" +errorPronePlugin = "3.1.0" +spotlessPlugin = "6.19.0" +shadowPlugin = "8.1.1" testLoggerPlugin = "3.2.0" -protobufPlugin = "0.9.2" -nexusPublishPlugin = "1.2.0" -axionReleasePlugin = "1.14.4" -testRetryPlugin = "1.5.2" +protobufPlugin = "0.9.3" +nexusPublishPlugin = "1.3.0" +axionReleasePlugin = "1.15.3" +testRetryPlugin = "1.5.3" [libraries] slf4j = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" } diff --git a/jetcd-core/src/main/java/io/etcd/jetcd/Txn.java b/jetcd-core/src/main/java/io/etcd/jetcd/Txn.java index a006a0f9c..d451c9e8e 100644 --- a/jetcd-core/src/main/java/io/etcd/jetcd/Txn.java +++ b/jetcd-core/src/main/java/io/etcd/jetcd/Txn.java @@ -30,15 +30,14 @@ *
  * {@code
  * txn.If(
- *    new Cmp(KEY, Cmp.Op.GREATER, CmpTarget.value(VALUE)),
- *    new Cmp(KEY, cmp.Op.EQUAL, CmpTarget.version(2))
- * ).Then(
- *    Op.put(KEY2, VALUE2, PutOption.DEFAULT),
- *    Op.put(KEY3, VALUE3, PutOption.DEFAULT)
- * ).Else(
- *    Op.put(KEY4, VALUE4, PutOption.DEFAULT),
- *    Op.put(KEY4, VALUE4, PutOption.DEFAULT)
- * ).commit();
+ *     new Cmp(KEY, Cmp.Op.GREATER, CmpTarget.value(VALUE)),
+ *     new Cmp(KEY, cmp.Op.EQUAL, CmpTarget.version(2))).Then(
+ *         Op.put(KEY2, VALUE2, PutOption.DEFAULT),
+ *         Op.put(KEY3, VALUE3, PutOption.DEFAULT))
+ *     .Else(
+ *         Op.put(KEY4, VALUE4, PutOption.DEFAULT),
+ *         Op.put(KEY4, VALUE4, PutOption.DEFAULT))
+ *     .commit();
  * }
  * 
* @@ -48,18 +47,17 @@ *
  * {@code
  * txn.If(
- *    new Cmp(KEY, Cmp.Op.GREATER, CmpTarget.value(VALUE))
- * ).If(
- *    new Cmp(KEY, cmp.Op.EQUAL, CmpTarget.version(VERSION))
- * ).Then(
- *    Op.put(KEY2, VALUE2, PutOption.DEFAULT)
- * ).Then(
- *    Op.put(KEY3, VALUE3, PutOption.DEFAULT)
- * ).Else(
- *    Op.put(KEY4, VALUE4, PutOption.DEFAULT)
- * ).Else(
- *    Op.put(KEY4, VALUE4, PutOption.DEFAULT)
- * ).commit();
+ *     new Cmp(KEY, Cmp.Op.GREATER, CmpTarget.value(VALUE))).If(
+ *         new Cmp(KEY, cmp.Op.EQUAL, CmpTarget.version(VERSION)))
+ *     .Then(
+ *         Op.put(KEY2, VALUE2, PutOption.DEFAULT))
+ *     .Then(
+ *         Op.put(KEY3, VALUE3, PutOption.DEFAULT))
+ *     .Else(
+ *         Op.put(KEY4, VALUE4, PutOption.DEFAULT))
+ *     .Else(
+ *         Op.put(KEY4, VALUE4, PutOption.DEFAULT))
+ *     .commit();
  * }
  * 
*/