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%2FNormalizedNodeOutputStreamWriter.java;h=40ca4f2e8693ce6c025909c643fd2041b7331c15;hb=da9ee8c80328bd6e21064e44f95f29ffc1e99d41;hp=60250ffefd199e93f205ebe39ee96d9623ab6860;hpb=09419e51e2e0b771b1ae013bb4c8bdf7a4f984eb;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeOutputStreamWriter.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeOutputStreamWriter.java index 60250ffefd..40ca4f2e86 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeOutputStreamWriter.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeOutputStreamWriter.java @@ -8,15 +8,12 @@ package org.opendaylight.controller.cluster.datastore.node.utils.stream; -import com.google.common.base.Preconditions; import java.io.DataOutput; -import java.io.DataOutputStream; import java.io.IOException; -import java.io.OutputStream; import java.util.HashMap; import java.util.Map; import org.opendaylight.yangtools.yang.common.QName; -import org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter; +import org.opendaylight.yangtools.yang.common.Revision; /** * NormalizedNodeOutputStreamWriter will be used by distributed datastore to send normalized node in @@ -29,30 +26,18 @@ import org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStre * {@link #leafNode(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier, Object)} twice * and then, {@link #endNode()} to end container node. * - * Based on the each node, the node type is also written to the stream, that helps in reconstructing the object, + *
Based on the each node, the node type is also written to the stream, that helps in reconstructing the object,
* while reading.
*/
-public class NormalizedNodeOutputStreamWriter extends AbstractNormalizedNodeDataOutput implements NormalizedNodeStreamWriter {
+final class NormalizedNodeOutputStreamWriter extends AbstractNormalizedNodeDataOutput {
private final Map