From bfe9193b90281e42de549fe93e7f690ee72c8dea Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Sun, 20 Oct 2019 11:23:48 +0200 Subject: [PATCH 1/1] Properly close stream writer Failing to close the streamwriter means it will not output its trailer in all cases. Fix that. Change-Id: I218cea9ff61fbc7c33ccab75638dda9a4f20b391 Signed-off-by: Robert Varga --- .../sal/rest/impl/RestconfDocumentedExceptionMapper.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/rest/impl/RestconfDocumentedExceptionMapper.java b/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/rest/impl/RestconfDocumentedExceptionMapper.java index 5561949f5e..ec2e967496 100644 --- a/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/rest/impl/RestconfDocumentedExceptionMapper.java +++ b/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/rest/impl/RestconfDocumentedExceptionMapper.java @@ -276,6 +276,12 @@ public class RestconfDocumentedExceptionMapper implements ExceptionMapper