From: Robert Varga Date: Tue, 4 Jun 2019 17:51:43 +0000 (+0200) Subject: Take advantage of AugmentationIdentifier.create() X-Git-Tag: release/sodium~58 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=7c06dc0a88d544a0096ecf55e95680748f949b0f;p=controller.git 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 --- 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 {