Skip to content

Commit

Permalink
Fix testcase failures
Browse files Browse the repository at this point in the history
  • Loading branch information
s-sathish committed May 18, 2023
1 parent ff2bd0f commit 5aa9918
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/redis/clients/jedis/BuilderFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ public String toString() {
public List<Map.Entry<String, String>> build(Object data) {
final List<Object> list = (List<Object>) data;
final List<Map.Entry<String, String>> pairList = new ArrayList<>();
final Iterator<Object> iterator = list.iterator();
while (iterator.hasNext()) {
pairList.add(new AbstractMap.SimpleEntry<>(STRING.build(iterator.next()), STRING.build(iterator.next())));
for (Object object : list) {
final List<byte[]> flat = (List<byte[]>) object;
pairList.add(new AbstractMap.SimpleEntry<>(SafeEncoder.encode(flat.get(0)), SafeEncoder.encode(flat.get(1))));
}

return pairList;
Expand Down

0 comments on commit 5aa9918

Please sign in to comment.