Skip to content

Commit 636e5f4

Browse files
committed
Use try/multi-catch in POM.getPOM
1 parent d5861f8 commit 636e5f4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main/java/org/scijava/util/POM.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,7 @@ public static POM getPOM(final Class<?> c, final String groupId,
257257
final File pomFile = new File(baseDir, "pom.xml");
258258
return new POM(pomFile);
259259
}
260-
catch (final IOException e) {
261-
return null;
262-
}
263-
catch (final ParserConfigurationException e) {
264-
return null;
265-
}
266-
catch (final SAXException e) {
260+
catch (final IOException | ParserConfigurationException | SAXException e) {
267261
return null;
268262
}
269263
}

0 commit comments

Comments
 (0)