|
|
|
@ -15,7 +15,7 @@
|
|
|
|
|
*/
|
|
|
|
|
package org.redisson.client.protocol.decoder;
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.LinkedHashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.Map.Entry;
|
|
|
|
@ -34,7 +34,7 @@ public class ObjectMapEntryReplayDecoder implements MultiDecoder<Set<Entry<Objec
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Set<Entry<Object, Object>> decode(List<Object> parts, State state) {
|
|
|
|
|
Map<Object, Object> result = new HashMap<Object, Object>(parts.size()/2);
|
|
|
|
|
Map<Object, Object> result = new LinkedHashMap<Object, Object>(parts.size()/2);
|
|
|
|
|
for (int i = 0; i < parts.size(); i++) {
|
|
|
|
|
if (i % 2 != 0) {
|
|
|
|
|
result.put(parts.get(i-1), parts.get(i));
|
|
|
|
|