X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-nb-bierman02%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fsal%2Frest%2Fimpl%2FPatchXmlBodyWriter.java;h=13ceb2e63ca2e95f2a4813dc00a7c52dbb567cce;hb=676b7818fd81f1322b7e8aa977271f3a3af397a6;hp=c1ca200d13dc59ea80548004b5da2fdd56b0f995;hpb=8c4f05fff7e41debdda08c9132e84c602d1b87cb;p=netconf.git diff --git a/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/rest/impl/PatchXmlBodyWriter.java b/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/rest/impl/PatchXmlBodyWriter.java index c1ca200d13..13ceb2e63c 100644 --- a/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/rest/impl/PatchXmlBodyWriter.java +++ b/restconf/restconf-nb-bierman02/src/main/java/org/opendaylight/netconf/sal/rest/impl/PatchXmlBodyWriter.java @@ -8,7 +8,6 @@ package org.opendaylight.netconf.sal.rest.impl; -import java.io.IOException; import java.io.OutputStream; import java.lang.annotation.Annotation; import java.lang.reflect.Type; @@ -57,7 +56,7 @@ public class PatchXmlBodyWriter implements MessageBodyWriter public void writeTo(final PatchStatusContext patchStatusContext, final Class type, final Type genericType, final Annotation[] annotations, final MediaType mediaType, final MultivaluedMap httpHeaders, final OutputStream entityStream) - throws IOException, WebApplicationException { + throws WebApplicationException { try { final XMLStreamWriter xmlWriter = @@ -71,7 +70,7 @@ public class PatchXmlBodyWriter implements MessageBodyWriter } private static void writeDocument(final XMLStreamWriter writer, final PatchStatusContext context) - throws XMLStreamException, IOException { + throws XMLStreamException { writer.writeStartElement("", "yang-patch-status", "urn:ietf:params:xml:ns:yang:ietf-yang-patch"); writer.writeStartElement("patch-id"); writer.writeCharacters(context.getPatchId()); @@ -107,7 +106,7 @@ public class PatchXmlBodyWriter implements MessageBodyWriter } private static void reportErrors(final List errors, final XMLStreamWriter writer) - throws IOException, XMLStreamException { + throws XMLStreamException { writer.writeStartElement("errors"); for (final RestconfError restconfError : errors) {