From 7c06dc0a88d544a0096ecf55e95680748f949b0f Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 4 Jun 2019 19:51:43 +0200 Subject: [PATCH] Take advantage of AugmentationIdentifier.create() When we are reading an augmentation identifier for the first time we can optimize the number of identifiers by consulting the global weak cache. JIRA: CONTROLLER-1898 Change-Id: I5cd2d87e0a7c3f01357beb1b097d4a16a6eda3e0 Signed-off-by: Robert Varga --- .../utils/stream/LithiumNormalizedNodeInputStreamReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java index b652c1437c..84e96bfb91 100755 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java @@ -250,7 +250,7 @@ class LithiumNormalizedNodeInputStreamReader extends ForwardingDataInput impleme } AugmentationIdentifier readAugmentationIdentifier() throws IOException { - return new AugmentationIdentifier(readQNameSet()); + return AugmentationIdentifier.create(readQNameSet()); } NodeIdentifier readNodeIdentifier() throws IOException { -- 2.36.6