Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Nov 24, 2024
1 parent ff55ffa commit ce5a572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ public J visitTry(J.Try tryStmt, ExecutionContext ctx) {
updatedCatches.add(catchClause);
}
}
if (flag)
if (flag) {
tryStmt = tryStmt.withCatches(updatedCatches);
}
}
return super.visitTry(tryStmt, ctx);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import static org.openrewrite.java.Assertions.java;

public class TypeNotPresentExceptionTest implements RewriteTest {
class TypeNotPresentExceptionTest implements RewriteTest {
@Override
public void defaults(RecipeSpec spec) {
spec.recipe(new ArrayStoreExceptionToTypeNotPresentException());
Expand Down

0 comments on commit ce5a572

Please sign in to comment.