Bug 2763: Fixed JSON serialization of root of mount point
authorTony Tkacik <ttkacik@cisco.com>
Wed, 25 Feb 2015 13:13:20 +0000 (14:13 +0100)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 2 Mar 2015 08:59:35 +0000 (08:59 +0000)
commit2e2ad8fe001e43908ecd284b6c0646b8965fea47
tree37c945883992b83fd748328c334b01d1197d8489
parent08fcacb67d759b52061342bd578d3c534a896a73
Bug 2763: Fixed JSON serialization of root of mount point

Upgrade of yang-data-codec-gson library to use GSON
for streaming and serialization of JSON broke
one special-case which was reading of mount point
root.

This patch migrates NormalizedNodeJsonCodec to
use proper APIs, which allows more explicit control
of how stream is processed.

Change-Id: I0f57e8ef99114a08b1bceb51c47efbcb0546af73
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/NormalizedNodeJsonBodyWriter.java