Java 7: Identical 'catch' branches in 'try' statement
This commit is contained in:
+2
-12
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user