Skip to content

Commit

Permalink
Revert output changes in BitField #2481
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Aug 16, 2023
1 parent f3690bb commit b48f75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/lettuce/core/RedisCommandBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Command<K, V, List<Long>> bitfield(K key, BitFieldArgs bitFieldArgs) {

bitFieldArgs.build(args);

return createCommand(BITFIELD, (CommandOutput) new IntegerListOutput<>(LongCodec.INSTANCE), args);
return createCommand(BITFIELD, (CommandOutput) new ArrayOutput<>(codec), args);
}

Command<K, V, List<Value<Long>>> bitfieldValue(K key, BitFieldArgs bitFieldArgs) {
Expand All @@ -285,7 +285,7 @@ Command<K, V, List<Value<Long>>> bitfieldValue(K key, BitFieldArgs bitFieldArgs)

bitFieldArgs.build(args);

return createCommand(BITFIELD, (CommandOutput) new ValueValueListOutput<>(LongCodec.INSTANCE), args);
return createCommand(BITFIELD, (CommandOutput) new ValueValueListOutput<>(codec), args);
}

Command<K, V, Long> bitopAnd(K destination, K... keys) {
Expand Down

0 comments on commit b48f75a

Please sign in to comment.