Remove ensureHeaderWritten() from writeNode() 53/84753/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 11 Sep 2019 20:05:19 +0000 (22:05 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 26 Sep 2019 18:20:28 +0000 (20:20 +0200)
commitf6b88c1391cca1bd72f3f92e1928c5b354617cbf
treed4d0b7266ddc72faf45ad44b3f09350a9e492edf
parent1e0ef0300117e5e555d670a1b2d2234eb710d161
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)
(cherry picked from commit 4bab20f3952e04fe764b35333394fac171bda7dd)
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/AbstractNormalizedNodeDataOutput.java