Skip to content

Commit 688687b

Browse files
committed
Refrain from using Lettuce converters in Jedis command implementation.
Closes #3328
1 parent c8791e0 commit 688687b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

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
@@ -33,7 +33,6 @@
3333
import org.springframework.data.redis.connection.RedisStringCommands;
3434
import org.springframework.data.redis.connection.convert.Converters;
3535
import org.springframework.data.redis.connection.jedis.JedisClusterConnection.JedisMultiKeyClusterCommandCallback;
36-
import org.springframework.data.redis.connection.lettuce.LettuceConverters;
3736
import org.springframework.data.redis.core.types.Expiration;
3837
import org.springframework.data.redis.util.ByteUtils;
3938
import org.springframework.util.Assert;
@@ -445,13 +444,13 @@ public Long bitPos(byte @NonNull [] key, boolean bit, @NonNull Range<Long> range
445444
Assert.notNull(range, "Range must not be null Use Range.unbounded() instead");
446445

447446
List<byte[]> args = new ArrayList<>(3);
448-
args.add(LettuceConverters.toBit(bit));
447+
args.add(JedisConverters.toBit(bit));
449448

450449
if (range.getLowerBound().isBounded()) {
451-
args.add(range.getLowerBound().getValue().map(LettuceConverters::toBytes).get());
450+
args.add(range.getLowerBound().getValue().map(JedisConverters::toBytes).get());
452451
}
453452
if (range.getUpperBound().isBounded()) {
454-
args.add(range.getUpperBound().getValue().map(LettuceConverters::toBytes).get());
453+
args.add(range.getUpperBound().getValue().map(JedisConverters::toBytes).get());
455454
}
456455

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

0 commit comments

Comments
 (0)