From e12b606902133912f1f9d559c2e0022901c0cd8c Mon Sep 17 00:00:00 2001 From: SanHalacogluImproving Date: Thu, 11 Apr 2024 09:16:09 -0700 Subject: [PATCH] Rebase + Spotless. --- java/client/src/main/java/glide/api/BaseClient.java | 6 +++--- java/client/src/test/java/glide/api/RedisClientTest.java | 2 +- java/integTest/src/test/java/glide/SharedCommandTests.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java/client/src/main/java/glide/api/BaseClient.java b/java/client/src/main/java/glide/api/BaseClient.java index f5c316967e..d2f54f15d4 100644 --- a/java/client/src/main/java/glide/api/BaseClient.java +++ b/java/client/src/main/java/glide/api/BaseClient.java @@ -730,9 +730,9 @@ public CompletableFuture zmscore(@NonNull String key, @NonNull String[ @Override public CompletableFuture zremrangebyrank(@NonNull String key, long start, long end) { return commandManager.submitNewCommand( - ZRemRangeByRank, - new String[] {key, Long.toString(start), Long.toString(end)}, - this::handleLongResponse); + ZRemRangeByRank, + new String[] {key, Long.toString(start), Long.toString(end)}, + this::handleLongResponse); } @Override diff --git a/java/client/src/test/java/glide/api/RedisClientTest.java b/java/client/src/test/java/glide/api/RedisClientTest.java index 882720dd81..b735281c95 100644 --- a/java/client/src/test/java/glide/api/RedisClientTest.java +++ b/java/client/src/test/java/glide/api/RedisClientTest.java @@ -2313,7 +2313,7 @@ public void zremrangebyrank_returns_success() { // match on protobuf request when(commandManager.submitNewCommand(eq(ZRemRangeByRank), eq(arguments), any())) - .thenReturn(testResponse); + .thenReturn(testResponse); // exercise CompletableFuture response = service.zremrangebyrank(key, start, end); diff --git a/java/integTest/src/test/java/glide/SharedCommandTests.java b/java/integTest/src/test/java/glide/SharedCommandTests.java index 9725828279..b6bb232bd8 100644 --- a/java/integTest/src/test/java/glide/SharedCommandTests.java +++ b/java/integTest/src/test/java/glide/SharedCommandTests.java @@ -1362,7 +1362,7 @@ public void zremrangebyrank(BaseClient client) { // Key exists, but it is not a set assertEquals(OK, client.set(key2, "value").get()); ExecutionException executionException = - assertThrows(ExecutionException.class, () -> client.zremrangebyrank(key2, 2, 1).get()); + assertThrows(ExecutionException.class, () -> client.zremrangebyrank(key2, 2, 1).get()); assertTrue(executionException.getCause() instanceof RequestException); }