diff --git a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentDeviceResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentDeviceResourceStore.java index 78cbb28c32..3266e96c5b 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentDeviceResourceStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentDeviceResourceStore.java @@ -21,7 +21,6 @@ import org.apache.felix.scr.annotations.Deactivate; import org.apache.felix.scr.annotations.Reference; import org.apache.felix.scr.annotations.ReferenceCardinality; import org.apache.felix.scr.annotations.Service; -import org.onlab.util.KryoNamespace; import org.onosproject.net.DeviceId; import org.onosproject.net.Port; import org.onosproject.net.device.DeviceService; @@ -56,8 +55,7 @@ public class ConsistentDeviceResourceStore implements DeviceResourceStore { private static final String INTENT_MAPPING = "IntentMapping"; private static final String INTENT_ALLOCATIONS = "PortIntentAllocations"; - private static final Serializer SERIALIZER = Serializer.using( - new KryoNamespace.Builder().register(KryoNamespaces.API).build()); + private static final Serializer SERIALIZER = Serializer.using(KryoNamespaces.API); private ConsistentMap portAllocMap; private ConsistentMap> intentAllocMap; diff --git a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentLinkResourceStore.java b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentLinkResourceStore.java index af9a07e78b..ce25f8683c 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentLinkResourceStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/resource/impl/ConsistentLinkResourceStore.java @@ -20,7 +20,6 @@ import org.onlab.util.Bandwidth; import org.onosproject.net.OmsPort; import org.onosproject.net.device.DeviceService; import org.slf4j.Logger; -import org.onlab.util.KryoNamespace; import org.onlab.util.PositionalParameterStringFormatter; import org.onosproject.net.Link; import org.onosproject.net.LinkKey; @@ -85,8 +84,7 @@ public class ConsistentLinkResourceStore extends /** IntentId -> LinkResourceAllocations. */ private static final String INTENT_ALLOCATIONS = "LinkIntentAllocations"; - private static final Serializer SERIALIZER = Serializer.using( - new KryoNamespace.Builder().register(KryoNamespaces.API).build()); + private static final Serializer SERIALIZER = Serializer.using(KryoNamespaces.API); // for reading committed values. private ConsistentMap intentAllocMap;