File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed
src/main/java/redis/clients/jedis Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -1719,21 +1719,6 @@ public String toString() {
1719
1719
}
1720
1720
};
1721
1721
1722
- public static final Builder <Map <String , Object >> ENCODED_OBJECT_MAP_FROM_PAIRS = new Builder <Map <String , Object >>() {
1723
- @ Override
1724
- public Map <String , Object > build (Object data ) {
1725
- final List <Object > list = (List <Object >) data ;
1726
- final Map <String , Object > map = new HashMap <>(list .size (), 1f );
1727
- for (Object object : list ) {
1728
- if (object == null ) continue ;
1729
- final List <Object > flat = (List <Object >) object ;
1730
- if (flat .isEmpty ()) continue ;
1731
- map .put (STRING .build (flat .get (0 )), ENCODED_OBJECT .build (flat .get (1 )));
1732
- }
1733
- return map ;
1734
- }
1735
- };
1736
-
1737
1722
public static final Builder <List <LibraryInfo >> LIBRARY_LIST = new Builder <List <LibraryInfo >>() {
1738
1723
@ Override
1739
1724
public List <LibraryInfo > build (Object data ) {
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ public TSInfo build(Object data) {
163
163
List <Map <String , Object >> chunksValueList = new ArrayList <>(chunksDataList .size ());
164
164
chunks = new ArrayList <>(chunksDataList .size ());
165
165
for (Object chunkData : chunksDataList ) {
166
- Map <String , Object > chunk = BuilderFactory .ENCODED_OBJECT_MAP_FROM_PAIRS .build (chunkData );
166
+ Map <String , Object > chunk = BuilderFactory .ENCODED_OBJECT_MAP .build (chunkData );
167
167
chunksValueList .add (new HashMap <>(chunk ));
168
168
chunks .add (chunk );
169
169
}
You can’t perform that action at this time.
0 commit comments