Skip to content

Commit baaed39

Browse files
committed
Fix SpotBugs recommendations
1 parent 51b106f commit baaed39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/sortPom/java/com/diffplug/spotless/glue/pom/SortPomFormatterFunc.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public String apply(String input) throws Exception {
6262
builder = (PluginParameters.Builder) method
6363
.invoke(builder, cfg.lineSeparator, cfg.expandEmptyElements, cfg.spaceBeforeCloseEmptyElement,
6464
cfg.keepBlankLines);
65-
} catch (Exception ignore) {
65+
} catch (ReflectiveOperationException | RuntimeException ignore) {
6666
throw e;
6767
}
6868
}
@@ -76,7 +76,7 @@ public String apply(String input) throws Exception {
7676
.getMethod("setIndent", int.class, boolean.class, boolean.class);
7777
builder = (PluginParameters.Builder) method
7878
.invoke(builder, cfg.nrOfIndentSpace, cfg.indentBlankLines, cfg.indentSchemaLocation);
79-
} catch (Exception ignore) {
79+
} catch (ReflectiveOperationException | RuntimeException ignore) {
8080
throw e;
8181
}
8282
}

0 commit comments

Comments
 (0)