Skip to content

Commit 3e98d85

Browse files
committed
Add withSideEffects:null to RemoveUnusedLocalVariables
1 parent 669381d commit 3e98d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openrewrite/java/migrate/jakarta/RemoveBeanIsNullable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public J visitMethodInvocation(J.MethodInvocation method, ExecutionContext ctx)
5050
if (BEAN_ISNULLABLE.matches(method)) {
5151
// clean up leftover conditions and remove unused variables
5252
doAfterVisit(new SimplifyConstantIfBranchExecution().getVisitor());
53-
doAfterVisit(new RemoveUnusedLocalVariables(null).getVisitor());
53+
doAfterVisit(new RemoveUnusedLocalVariables(null, null).getVisitor());
5454
return new J.Literal(randomId(), Space.SINGLE_SPACE, Markers.EMPTY, Boolean.FALSE, "false", null, JavaType.Primitive.Boolean);
5555
}
5656
return super.visitMethodInvocation(method, ctx);

0 commit comments

Comments
 (0)