Bug 2763: Fixed JSON serialization of root of mount point 20/15720/3
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)
commit6345946ab68108ac70de6f0c472b520802656abe
tree1785454219434ba7733c4292079524048c74664f
parent009fc930faca431bc6802885c28ccdfe3b1ab86f
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