Skip to content

Commit ce5a572

Browse files
authored
Apply suggestions from code review
1 parent ff55ffa commit ce5a572

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/org/openrewrite/java/migrate/ArrayStoreExceptionToTypeNotPresentException.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ public J visitTry(J.Try tryStmt, ExecutionContext ctx) {
5858
updatedCatches.add(catchClause);
5959
}
6060
}
61-
if (flag)
61+
if (flag) {
6262
tryStmt = tryStmt.withCatches(updatedCatches);
63+
}
6364
}
6465
return super.visitTry(tryStmt, ctx);
6566
}

src/test/java/org/openrewrite/java/migrate/TypeNotPresentExceptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

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

24-
public class TypeNotPresentExceptionTest implements RewriteTest {
24+
class TypeNotPresentExceptionTest implements RewriteTest {
2525
@Override
2626
public void defaults(RecipeSpec spec) {
2727
spec.recipe(new ArrayStoreExceptionToTypeNotPresentException());

0 commit comments

Comments
 (0)