Skip to content

Commit

Permalink
remove calls to getBytes()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jun 25, 2024
1 parent b44eee2 commit 37682d4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions java/client/src/test/java/glide/api/RedisClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2126,7 +2126,7 @@ public void ltrim_binary_returns_success() {
long end = 2L;
GlideString[] args =
new GlideString[] {
key, gs(Long.toString(end).getBytes()), gs(Long.toString(start).getBytes())
key, gs(Long.toString(end)), gs(Long.toString(start))
};

CompletableFuture<String> testResponse = new CompletableFuture<>();
Expand Down Expand Up @@ -6489,10 +6489,10 @@ public void bitpos_with_start_and_end_and_type_binary_returns_success() {
GlideString[] arguments =
new GlideString[] {
key,
gs(Long.toString(bit).getBytes()),
gs(Long.toString(start).getBytes()),
gs(Long.toString(end).getBytes()),
gs(BitmapIndexType.BIT.toString().getBytes())
gs(Long.toString(bit)),
gs(Long.toString(start)),
gs(Long.toString(end)),
gs(BitmapIndexType.BIT.toString())
};
CompletableFuture<Long> testResponse = new CompletableFuture<>();
testResponse.complete(bitPosition);
Expand Down Expand Up @@ -6545,7 +6545,7 @@ public void bitop_bianry_returns_success() {
BitwiseOperation bitwiseAnd = BitwiseOperation.AND;
GlideString[] arguments =
concatenateArrays(
new GlideString[] {gs(bitwiseAnd.toString().getBytes()), destination}, keys);
new GlideString[] {gs(bitwiseAnd.toString()), destination}, keys);
CompletableFuture<Long> testResponse = new CompletableFuture<>();
testResponse.complete(result);

Expand Down Expand Up @@ -6966,7 +6966,7 @@ public void move_binary_returns_success() {
// setup
GlideString key = gs("testKey");
long dbIndex = 2L;
GlideString[] arguments = new GlideString[] {key, gs(Long.toString(dbIndex).getBytes())};
GlideString[] arguments = new GlideString[] {key, gs(Long.toString(dbIndex))};
Boolean value = true;

CompletableFuture<Boolean> testResponse = new CompletableFuture<>();
Expand Down

0 comments on commit 37682d4

Please sign in to comment.