Skip to content

Commit

Permalink
Unaddress(!) some double replies
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Feb 27, 2023
1 parent 7d93dfe commit 1d7fa34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/redis/clients/jedis/CommandObjects.java
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public final CommandObject<Long> incrBy(String key, long increment) {
}

public final CommandObject<Double> incrByFloat(String key, double increment) {
return new CommandObject<>(commandArguments(INCRBYFLOAT).key(key).add(increment), getDoubleBuilder());
return new CommandObject<>(commandArguments(INCRBYFLOAT).key(key).add(increment), BuilderFactory.DOUBLE);
}

public final CommandObject<Long> incr(byte[] key) {
Expand All @@ -557,7 +557,7 @@ public final CommandObject<Long> incrBy(byte[] key, long increment) {
}

public final CommandObject<Double> incrByFloat(byte[] key, double increment) {
return new CommandObject<>(commandArguments(INCRBYFLOAT).key(key).add(increment), getDoubleBuilder());
return new CommandObject<>(commandArguments(INCRBYFLOAT).key(key).add(increment), BuilderFactory.DOUBLE);
}

public final CommandObject<Long> decr(String key) {
Expand Down Expand Up @@ -1035,7 +1035,7 @@ public final CommandObject<Long> hincrBy(String key, String field, long value) {
}

public final CommandObject<Double> hincrByFloat(String key, String field, double value) {
return new CommandObject<>(commandArguments(HINCRBYFLOAT).key(key).add(field).add(value), getDoubleBuilder());
return new CommandObject<>(commandArguments(HINCRBYFLOAT).key(key).add(field).add(value), BuilderFactory.DOUBLE);
}

public final CommandObject<Boolean> hexists(String key, String field) {
Expand All @@ -1055,7 +1055,7 @@ public final CommandObject<Long> hincrBy(byte[] key, byte[] field, long value) {
}

public final CommandObject<Double> hincrByFloat(byte[] key, byte[] field, double value) {
return new CommandObject<>(commandArguments(HINCRBYFLOAT).key(key).add(field).add(value), getDoubleBuilder());
return new CommandObject<>(commandArguments(HINCRBYFLOAT).key(key).add(field).add(value), BuilderFactory.DOUBLE);
}

public final CommandObject<Boolean> hexists(byte[] key, byte[] field) {
Expand Down

0 comments on commit 1d7fa34

Please sign in to comment.