From e840ea282204acf921e2af427467c15a23c96efe Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 2 Mar 2023 17:11:10 +0100 Subject: [PATCH] Remove Namespace.DEFAULT 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 --- .../main/java/io/atomix/utils/serializer/Namespace.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/third-party/atomix/storage/src/main/java/io/atomix/utils/serializer/Namespace.java b/third-party/atomix/storage/src/main/java/io/atomix/utils/serializer/Namespace.java index ff2afd0961..33fc1717fb 100644 --- a/third-party/atomix/storage/src/main/java/io/atomix/utils/serializer/Namespace.java +++ b/third-party/atomix/storage/src/main/java/io/atomix/utils/serializer/Namespace.java @@ -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(); -- 2.36.6