Skip to content

Commit e277f8a

Browse files
committed
Collaps "catch" blocks
1 parent e8cf690 commit e277f8a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

metafacture-xml/src/main/java/org/metafacture/xml/XmlDecoder.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ public void process(final Reader reader) {
8888
try {
8989
saxReader.parse(new InputSource(reader));
9090
}
91-
catch (final IOException e) {
92-
throw new MetafactureException(e);
93-
}
94-
catch (final SAXException e) {
91+
catch (final IOException | SAXException e) {
9592
throw new MetafactureException(e);
9693
}
9794
}
@@ -105,10 +102,7 @@ protected void onSetReceiver() {
105102
try {
106103
saxReader.setProperty(SAX_PROPERTY_LEXICAL_HANDLER, getReceiver());
107104
}
108-
catch (final SAXNotRecognizedException e) {
109-
throw new MetafactureException(e);
110-
}
111-
catch (final SAXNotSupportedException e) {
105+
catch (final SAXNotRecognizedException | SAXNotSupportedException e) {
112106
throw new MetafactureException(e);
113107
}
114108
}

0 commit comments

Comments
 (0)