Skip to content

Commit 9f4d8d4

Browse files
committed
Refrain from using Lettuce converters in Jedis command implementation.
Closes spring-projects#3328
1 parent ef9a10c commit 9f4d8d4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/org/springframework/data/redis/connection/jedis/JedisClusterStringCommands.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import org.springframework.data.redis.connection.SetCondition;
3636
import org.springframework.data.redis.connection.convert.Converters;
3737
import org.springframework.data.redis.connection.jedis.JedisClusterConnection.JedisMultiKeyClusterCommandCallback;
38-
import org.springframework.data.redis.connection.lettuce.LettuceConverters;
3938
import org.springframework.data.redis.core.types.Expiration;
4039
import org.springframework.data.redis.util.ByteUtils;
4140
import org.springframework.util.Assert;
@@ -443,13 +442,13 @@ public Long bitPos(byte @NonNull [] key, boolean bit, @NonNull Range<Long> range
443442
Assert.notNull(range, "Range must not be null Use Range.unbounded() instead");
444443

445444
List<byte[]> args = new ArrayList<>(3);
446-
args.add(LettuceConverters.toBit(bit));
445+
args.add(JedisConverters.toBit(bit));
447446

448447
if (range.getLowerBound().isBounded()) {
449-
args.add(range.getLowerBound().getValue().map(LettuceConverters::toBytes).get());
448+
args.add(range.getLowerBound().getValue().map(JedisConverters::toBytes).get());
450449
}
451450
if (range.getUpperBound().isBounded()) {
452-
args.add(range.getUpperBound().getValue().map(LettuceConverters::toBytes).get());
451+
args.add(range.getUpperBound().getValue().map(JedisConverters::toBytes).get());
453452
}
454453

455454
return Long.class.cast(connection.execute("BITPOS", key, args));

0 commit comments

Comments
 (0)