Remove Namespace.DEFAULT 32/104732/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 2 Mar 2023 16:11:10 +0000 (17:11 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 2 Mar 2023 16:11:51 +0000 (17:11 +0100)
We want users to explicitly set up their namespaces, hence remove the
default namespace.

JIRA: CONTROLLER-2072
Change-Id: Id97bc5d5696dd8f12a34bf8d3378344da3396b49
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
third-party/atomix/storage/src/main/java/io/atomix/utils/serializer/Namespace.java

index ff2afd09618a11b95c6dabcd9a30e89ab4954eef..33fc1717fb0d08dcdfb114135376a5724b94963b 100644 (file)
@@ -69,14 +69,7 @@ public final class Namespace implements KryoFactory, KryoPool {
 
   private static final Logger LOGGER = LoggerFactory.getLogger(Namespace.class);
 
-  /**
-   * Default Kryo namespace.
-   */
-  public static final Namespace DEFAULT = builder().build();
-
-  private final KryoPool kryoPool = new KryoPool.Builder(this)
-      .softReferences()
-      .build();
+  private final KryoPool kryoPool = new KryoPool.Builder(this).softReferences().build();
 
   private final KryoOutputPool kryoOutputPool = new KryoOutputPool();
   private final KryoInputPool kryoInputPool = new KryoInputPool();