1
0
mirror of synced 2026-08-04 17:27:13 +00:00

Java 7: Identical 'catch' branches in 'try' statement

This commit is contained in:
Lars Grefer
2019-08-09 00:48:57 +02:00
committed by Rob Winch
parent 5e44a249f8
commit 25c06be1eb
5 changed files with 9 additions and 43 deletions
@@ -114,19 +114,9 @@ public class WebXmlMappableAttributesRetriever implements ResourceLoaderAware,
doc = db.parse(aStream);
return doc;
}
catch (FactoryConfigurationError e) {
catch (FactoryConfigurationError | IOException | SAXException | ParserConfigurationException e) {
throw new RuntimeException("Unable to parse document object", e);
}
catch (ParserConfigurationException e) {
throw new RuntimeException("Unable to parse document object", e);
}
catch (SAXException e) {
throw new RuntimeException("Unable to parse document object", e);
}
catch (IOException e) {
throw new RuntimeException("Unable to parse document object", e);
}
finally {
} finally {
try {
aStream.close();
}