File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
metafacture-xml/src/main/java/org/metafacture/xml Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments