diff --git a/java/client/src/main/java/glide/api/commands/SortedSetBaseCommands.java b/java/client/src/main/java/glide/api/commands/SortedSetBaseCommands.java index e00bbd97fd..1c343b45e1 100644 --- a/java/client/src/main/java/glide/api/commands/SortedSetBaseCommands.java +++ b/java/client/src/main/java/glide/api/commands/SortedSetBaseCommands.java @@ -285,9 +285,10 @@ CompletableFuture zaddIncr( * @param keys The keys of the sorted sets. * @param timeout The number of seconds to wait for a blocking operation to complete. A value of * 0 will block indefinitely. - * @return An array containing the key where the member was popped out, the member itself, and the - * member score.
- * If no member could be popped and the timeout expired, returns null. + * @return An array containing the key where the member was popped out, the member + * itself, and the member score.
+ * If no member could be popped and the timeout expired, returns null + * . * @example *
{@code
      * Object[] data = client.bzpopmax(new String[] {"zset1", "zset2"}, 0.5).get();
diff --git a/java/client/src/main/java/glide/api/models/BaseTransaction.java b/java/client/src/main/java/glide/api/models/BaseTransaction.java
index 90e0eb631a..4fc9bf3db9 100644
--- a/java/client/src/main/java/glide/api/models/BaseTransaction.java
+++ b/java/client/src/main/java/glide/api/models/BaseTransaction.java
@@ -1478,9 +1478,10 @@ public T zpopmax(@NonNull String key) {
      * @param keys The keys of the sorted sets.
      * @param timeout The number of seconds to wait for a blocking operation to complete. A value of
      *     0 will block indefinitely.
-     * @return Command Response - An array containing the key where the member was popped out, the
-     *     member itself, and the member score.
- * If no member could be popped and the timeout expired, returns null. + * @return Command Response - An array containing the key where the member was popped + * out, the member itself, and the member score.
+ * If no member could be popped and the timeout expired, returns null + * . */ public T bzpopmax(@NonNull String[] keys, double timeout) { ArgsArray commandArgs = buildArgs(ArrayUtils.add(keys, Double.toString(timeout))); diff --git a/java/client/src/test/java/glide/api/models/TransactionTests.java b/java/client/src/test/java/glide/api/models/TransactionTests.java index 33c5c4df74..0c4d01a9b8 100644 --- a/java/client/src/test/java/glide/api/models/TransactionTests.java +++ b/java/client/src/test/java/glide/api/models/TransactionTests.java @@ -334,10 +334,7 @@ public void transaction_builds_protobuf_request(BaseTransaction transaction) results.add(Pair.of(ZPopMax, buildArgs("key"))); transaction.bzpopmax(new String[] {"key1", "key2"}, .5); - results.add( - Pair.of( - BZPopMax, - ArgsArray.newBuilder().addArgs("key1").addArgs("key2").addArgs("0.5").build())); + results.add(Pair.of(BZPopMax, buildArgs("key1", "key2", "0.5"))); transaction.zpopmax("key", 2); results.add(Pair.of(ZPopMax, buildArgs("key", "2")));