Register a set of primitive array types to KryoNamespaces
Change-Id: I5c1a9f4755d3cbc222ca45ecb9ff705b349df351
Showing
1 changed file
with
8 additions
and
0 deletions
... | @@ -268,6 +268,14 @@ public final class KryoNamespaces { | ... | @@ -268,6 +268,14 @@ public final class KryoNamespaces { |
268 | .register(Optional.class) | 268 | .register(Optional.class) |
269 | .register(Collections.emptyList().getClass()) | 269 | .register(Collections.emptyList().getClass()) |
270 | .register(Collections.singleton(Object.class).getClass()) | 270 | .register(Collections.singleton(Object.class).getClass()) |
271 | + .register(int[].class) | ||
272 | + .register(long[].class) | ||
273 | + .register(short[].class) | ||
274 | + .register(double[].class) | ||
275 | + .register(float[].class) | ||
276 | + .register(char[].class) | ||
277 | + .register(String[].class) | ||
278 | + .register(boolean[].class) | ||
271 | .build(); | 279 | .build(); |
272 | 280 | ||
273 | /** | 281 | /** | ... | ... |
-
Please register or login to post a comment