Remove ensureHeaderWritten() from writeNode() 91/84591/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 11 Sep 2019 20:05:19 +0000 (22:05 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 23 Sep 2019 03:38:09 +0000 (05:38 +0200)
commit4bab20f3952e04fe764b35333394fac171bda7dd
treeec048a0091b897082069196c65c8a5f7f4358ce6
parent7086c00686a2641790773574c608c1dbb60abd48
Remove ensureHeaderWritten() from writeNode()

This updates documentation of AbstractNormalizedNodeDataOutput
to make it clear that the NormalizedNodeStreamWriter aspect of
it is an implementation detail and that the stream has been
header-initialized by the time any of those methods are called.

The clarification renders calling ensureHeaderWritten() from
writeNode() superfluous, as at that point it is guaranteed to
be a no-op.

Change-Id: I85a5c1304849fe5bc737fa51bd4b40ff2dd8c08c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 1165ba34382d4c99394e64d71ffee783d6a8fe82)
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/AbstractNormalizedNodeDataOutput.java