diff --git a/java/client/src/main/java/glide/api/BaseClient.java b/java/client/src/main/java/glide/api/BaseClient.java index 695706816d..1476355746 100644 --- a/java/client/src/main/java/glide/api/BaseClient.java +++ b/java/client/src/main/java/glide/api/BaseClient.java @@ -599,7 +599,7 @@ public CompletableFuture zcard(@NonNull String key) { @Override public CompletableFuture> zpopmax(@NonNull String key, long count) { return commandManager.submitNewCommand( - ZPopMax, new String[] {key, Long.toString(count)}, this::handleMapResponse); + ZPopMax, new String[] {key, Long.toString(count)}, this::handleMapResponse); } @Override diff --git a/java/integTest/src/test/java/glide/SharedCommandTests.java b/java/integTest/src/test/java/glide/SharedCommandTests.java index 4ebe6634b3..4f3434056e 100644 --- a/java/integTest/src/test/java/glide/SharedCommandTests.java +++ b/java/integTest/src/test/java/glide/SharedCommandTests.java @@ -1070,7 +1070,7 @@ public void zpopmax(BaseClient client) { // Key exists, but it is not a set assertEquals(OK, client.set(key, "value").get()); ExecutionException executionException = - assertThrows(ExecutionException.class, () -> client.zpopmax(key).get()); + assertThrows(ExecutionException.class, () -> client.zpopmax(key).get()); assertTrue(executionException.getCause() instanceof RequestException); }