Skip to content

Commit

Permalink
Collapse identical catch blocks to reduce code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
darxriggs committed Dec 18, 2018
1 parent 9919a1f commit 082df18
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ public static HealthReport getHealthReport(Item item) {
try {
Method getBuildHealth = item.getClass().getMethod("getBuildHealth");
return (HealthReport) getBuildHealth.invoke(item);
} catch (NoSuchMethodException e) {
// ignore best effort only
} catch (InvocationTargetException e) {
// ignore best effort only
} catch (IllegalAccessException e) {
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
// ignore best effort only
}
return null;
Expand Down

0 comments on commit 082df18

Please sign in to comment.