Skip to content

Commit

Permalink
Collaps "catch" blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Aug 30, 2024
1 parent e8cf690 commit e277f8a
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ public void process(final Reader reader) {
try {
saxReader.parse(new InputSource(reader));
}
catch (final IOException e) {
throw new MetafactureException(e);
}
catch (final SAXException e) {
catch (final IOException | SAXException e) {
throw new MetafactureException(e);
}
}
Expand All @@ -105,10 +102,7 @@ protected void onSetReceiver() {
try {
saxReader.setProperty(SAX_PROPERTY_LEXICAL_HANDLER, getReceiver());
}
catch (final SAXNotRecognizedException e) {
throw new MetafactureException(e);
}
catch (final SAXNotSupportedException e) {
catch (final SAXNotRecognizedException | SAXNotSupportedException e) {
throw new MetafactureException(e);
}
}
Expand Down

0 comments on commit e277f8a

Please sign in to comment.