Use multi-catch when possible
This commit is contained in:
+1
-4
@@ -99,15 +99,12 @@ public class ModuleXmlParser {
|
||||
});
|
||||
return new ModuleScriptData(modules);
|
||||
}
|
||||
catch (ParserConfigurationException e) {
|
||||
catch (ParserConfigurationException | IOException e) {
|
||||
MessageCollectorUtil.reportException(messageCollector, e);
|
||||
}
|
||||
catch (SAXException e) {
|
||||
messageCollector.report(ERROR, OutputMessageUtil.renderException(e), NO_LOCATION);
|
||||
}
|
||||
catch (IOException e) {
|
||||
MessageCollectorUtil.reportException(messageCollector, e);
|
||||
}
|
||||
return ModuleScriptData.EMPTY;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user