Skip to content

Commit

Permalink
Update src/main/java/org/openrewrite/staticanalysis/SimplifyBooleanEx…
Browse files Browse the repository at this point in the history
…pression.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
punkratz312 and github-actions[bot] authored Dec 27, 2024
1 parent e5d3b57 commit 8a65e5d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
// e.g. `X?.fun() == true` is not equivalent to `X?.fun()`
@Override
protected boolean shouldSimplifyEqualsOn(@Nullable J j) {
return !(j instanceof J.MethodInvocation)
|| !j.getMarkers().findFirst(IsNullSafe.class).isPresent();
return !(j instanceof J.MethodInvocation) ||
!j.getMarkers().findFirst(IsNullSafe.class).isPresent();
}
};
}
Expand Down

0 comments on commit 8a65e5d

Please sign in to comment.