X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fnode%2Futils%2Fstream%2FNeonSR2NormalizedNodeOutputStreamWriter.java;h=43bcc3452369ced145ec1d363cf672f2022c506b;hb=refs%2Fchanges%2F27%2F84327%2F2;hp=e38c34aa9600e6aeb2837945beb6fc43228bcf91;hpb=ba411b9ab99dc4420f2ba180a91a4e9a3af1d5d8;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NeonSR2NormalizedNodeOutputStreamWriter.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NeonSR2NormalizedNodeOutputStreamWriter.java index e38c34aa96..43bcc34523 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NeonSR2NormalizedNodeOutputStreamWriter.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NeonSR2NormalizedNodeOutputStreamWriter.java @@ -29,7 +29,7 @@ import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.Augmentat *

Based on the each node, the node type is also written to the stream, that helps in reconstructing the object, * while reading. */ -class NeonSR2NormalizedNodeOutputStreamWriter extends AbstractLithiumDataOutput { +final class NeonSR2NormalizedNodeOutputStreamWriter extends AbstractLithiumDataOutput { private final Map aidCodeMap = new HashMap<>(); private final Map moduleCodeMap = new HashMap<>(); private final Map qnameCodeMap = new HashMap<>(); @@ -39,12 +39,12 @@ class NeonSR2NormalizedNodeOutputStreamWriter extends AbstractLithiumDataOutput } @Override - protected short streamVersion() { + short streamVersion() { return TokenTypes.NEON_SR2_VERSION; } @Override - public final void writeQName(final QName qname) throws IOException { + void writeQNameInternal(final QName qname) throws IOException { final Integer value = qnameCodeMap.get(qname); if (value == null) { // Fresh QName, remember it and emit as three strings @@ -65,7 +65,7 @@ class NeonSR2NormalizedNodeOutputStreamWriter extends AbstractLithiumDataOutput // Fresh AugmentationIdentifier, remember it and emit as three strings aidCodeMap.put(aid, aidCodeMap.size()); writeByte(TokenTypes.IS_AUGMENT_VALUE); - super.writeAugmentationIdentifier(aid); + defaultWriteAugmentationIdentifier(aid); } else { // We have already seen this AugmentationIdentifier: write its code writeByte(TokenTypes.IS_AUGMENT_CODE);