Close nested JSON writers 68/67868/4
authorStephen Kitt <skitt@redhat.com>
Fri, 2 Feb 2018 15:57:30 +0000 (16:57 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 7 Feb 2018 17:10:59 +0000 (18:10 +0100)
commitef38783b8b54cfc417da21f87d7dc90cbeeb0a74
treefdd366da3834a4909ed8417631f1be6ef7b48cfb
parent07564c16ec28c654e1177d8a514dffa643c79bcf
Close nested JSON writers

With I9c597fe96937867cffdcbeeddd4b1507de20f2ee,
JSONNormalizedNodeStreamWriter.createNestedWriter() leaves it up to
the caller to close the provided JsonWriter. This patch ensures that
that is the case.

Change-Id: If20a596db06e40d1636de168dd11677372964364
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/rest/impl/NormalizedNodeJsonBodyWriter.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/restconf/jersey/providers/NormalizedNodeJsonBodyWriter.java