Skip to content

Commit

Permalink
Cleanup - Collapse identical catch blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
darxriggs committed Feb 14, 2019
1 parent a9aae82 commit 809fd29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/jvnet/hudson/test/JenkinsMatchers.java
Expand Up @@ -56,9 +56,7 @@ public boolean matches(Object o) {
}
t = t.getCause();
}
} catch (InstantiationException e) {
// ignore
} catch (IllegalAccessException e) {
} catch (InstantiationException | IllegalAccessException e) {
// ignore
} finally {
c.setAccessible(accessible);
Expand Down
Expand Up @@ -108,9 +108,7 @@ public void run() {
for (File dir : tbr)
try {
new FilePath(dir).deleteRecursive();
} catch (IOException e) {
e.printStackTrace();
} catch (InterruptedException e) {
} catch (IOException | InterruptedException e) {
e.printStackTrace();
}
}
Expand Down

0 comments on commit 809fd29

Please sign in to comment.