Madan Jampani

Registering Collections.SingletonList.class with kryo.

...@@ -6,6 +6,7 @@ import static org.slf4j.LoggerFactory.getLogger; ...@@ -6,6 +6,7 @@ import static org.slf4j.LoggerFactory.getLogger;
6 import java.util.ArrayList; 6 import java.util.ArrayList;
7 import java.util.Arrays; 7 import java.util.Arrays;
8 import java.util.Collection; 8 import java.util.Collection;
9 +import java.util.Collections;
9 import java.util.HashMap; 10 import java.util.HashMap;
10 import java.util.HashSet; 11 import java.util.HashSet;
11 import java.util.LinkedList; 12 import java.util.LinkedList;
...@@ -133,6 +134,7 @@ public class ClusterMessagingProtocol ...@@ -133,6 +134,7 @@ public class ClusterMessagingProtocol
133 HashMap.class, 134 HashMap.class,
134 HashSet.class, 135 HashSet.class,
135 LinkedList.class, 136 LinkedList.class,
137 + Collections.singletonList("").getClass(),
136 byte[].class) 138 byte[].class)
137 .build(); 139 .build();
138 140
...@@ -180,4 +182,4 @@ public class ClusterMessagingProtocol ...@@ -180,4 +182,4 @@ public class ClusterMessagingProtocol
180 } 182 }
181 return null; 183 return null;
182 } 184 }
183 -}
...\ No newline at end of file ...\ No newline at end of file
185 +}
......