Fix Java 7 IDE migration warnings
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / jersey / providers / patch / PatchXmlBodyWriter.java
index d7d264fdab92d6fd6cb789264f8f3bfb43b8d2e9..aa936e59193cea70020ef2b2a6905f1db67a346a 100644 (file)
@@ -62,9 +62,7 @@ public class PatchXmlBodyWriter implements MessageBodyWriter<PatchStatusContext>
             final XMLStreamWriter xmlWriter =
                     XML_FACTORY.createXMLStreamWriter(entityStream, StandardCharsets.UTF_8.name());
             writeDocument(xmlWriter, patchStatusContext);
-        } catch (final XMLStreamException e) {
-            throw new IllegalStateException(e);
-        } catch (final FactoryConfigurationError e) {
+        } catch (final XMLStreamException | FactoryConfigurationError e) {
             throw new IllegalStateException(e);
         }
     }