Skip to content

Commit

Permalink
Update ClassNewInstance.java
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt authored Nov 3, 2022
1 parent 90c6fc6 commit c4fdf9c
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState
// update or add a catch block to handle the new exceptions
private static boolean fixExceptions(VisitorState state, SuggestedFix.Builder fix) {
TryTree tryTree = null;

for (TreePath path = state.getPath(); path != null; path = path.getParentPath()) {
if (path.getLeaf() instanceof CatchTree) {
// don't add more catch blocks if newInstance() was called in a catch block
Expand Down

0 comments on commit c4fdf9c

Please sign in to comment.