X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fnode%2Futils%2Fstream%2FLithiumNormalizedNodeInputStreamReader.java;h=1a0d6dd94bcb13a65549137bfca16b8a1c7cdf83;hb=01d87e48543865be3d802c6b5497191623b0ae37;hp=b652c1437cece87ba1576c8df4cddfa61eff38d9;hpb=c8121ea6b5bf54c43777afe6a747be40637e1f42;p=controller.git 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..1a0d6dd94b 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 @@ -208,17 +208,17 @@ class LithiumNormalizedNodeInputStreamReader extends ForwardingDataInput impleme } } - QName readQName() throws IOException { + @Override + public QName readQName() throws IOException { // Read in the same sequence of writing String localName = readCodedString(); String namespace = readCodedString(); String revision = Strings.emptyToNull(readCodedString()); - return QNameFactory.create(new QNameFactory.Key(localName, namespace, revision)); + return QNameFactory.create(localName, namespace, revision); } - - private String readCodedString() throws IOException { + final String readCodedString() throws IOException { final byte valueType = input.readByte(); switch (valueType) { case TokenTypes.IS_NULL_VALUE: @@ -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 {