File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/redis/clients/jedis Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -382,9 +382,9 @@ public String toString() {
382382 public List <Map .Entry <String , String >> build (Object data ) {
383383 final List <Object > list = (List <Object >) data ;
384384 final List <Map .Entry <String , String >> pairList = new ArrayList <>();
385- final Iterator < Object > iterator = list . iterator ();
386- while ( iterator . hasNext ()) {
387- pairList .add (new AbstractMap .SimpleEntry <>(STRING . build ( iterator . next ( )), STRING . build ( iterator . next ( ))));
385+ for ( Object object : list ) {
386+ final List < byte []> flat = ( List < byte []>) object ;
387+ pairList .add (new AbstractMap .SimpleEntry <>(SafeEncoder . encode ( flat . get ( 0 )), SafeEncoder . encode ( flat . get ( 1 ))));
388388 }
389389
390390 return pairList ;
You can’t perform that action at this time.
0 commit comments