Jonathan Hart
Committed by Gerrit Code Review

Increase headroom for standard Kryo namespaces to prevent registrations

overwriting one another

Change-Id: I4ed0254b1131d3301c8cc92af8916346fe8a02b9
...@@ -293,7 +293,7 @@ public final class KryoNamespaces { ...@@ -293,7 +293,7 @@ public final class KryoNamespaces {
293 /** 293 /**
294 * Kryo registration Id for user custom registration. 294 * Kryo registration Id for user custom registration.
295 */ 295 */
296 - public static final int BEGIN_USER_CUSTOM_ID = 300; 296 + public static final int BEGIN_USER_CUSTOM_ID = 500;
297 297
298 // TODO: Populate other classes 298 // TODO: Populate other classes
299 /** 299 /**
...@@ -302,9 +302,9 @@ public final class KryoNamespaces { ...@@ -302,9 +302,9 @@ public final class KryoNamespaces {
302 public static final KryoNamespace API = KryoNamespace.newBuilder() 302 public static final KryoNamespace API = KryoNamespace.newBuilder()
303 .nextId(KryoNamespace.INITIAL_ID) 303 .nextId(KryoNamespace.INITIAL_ID)
304 .register(BASIC) 304 .register(BASIC)
305 - .nextId(KryoNamespace.INITIAL_ID + 30) 305 + .nextId(KryoNamespace.INITIAL_ID + 50)
306 .register(MISC) 306 .register(MISC)
307 - .nextId(KryoNamespace.INITIAL_ID + 30 + 20) 307 + .nextId(KryoNamespace.INITIAL_ID + 50 + 30)
308 .register( 308 .register(
309 Instructions.MeterInstruction.class, 309 Instructions.MeterInstruction.class,
310 MeterId.class, 310 MeterId.class,
......