We do not allow for dynamically-allocated IDs. Remove the constant and
the corresponding special-case.
JIRA: CONTROLLER-2072
Change-Id: I7de4ec77bd6934cd89c78de406cf9e0c73fa2cd4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*/
private static final int DEFAULT_BUFFER_SIZE = 4096;
- /**
- * ID to use if this KryoNamespace does not define registration id.
- */
- private static final int FLOATING_ID = -1;
-
/**
* Smallest ID free to use for user defined registrations.
*/
for (RegistrationBlock block : registeredBlocks) {
int id = block.begin();
- if (id == FLOATING_ID) {
- id = kryo.getNextRegistrationId();
- }
for (Entry<Class<?>[], EntrySerializer<?>> entry : block.types()) {
register(kryo, entry.getKey(), entry.getValue(), id++);
}