rewrite-static-analysis
rewrite-static-analysis copied to clipboard
org.openrewrite.staticanalysis.AvoidBoxedBooleanExpressions does not understand @NonNull annotations
What is the smallest, simplest way to reproduce the problem?
import lombok.@NonNull
class A {
void foo(@NonNull Boolean b) {
if(b) {
}
}
What did you expect to see?
import lombok.@NonNull
class A {
void foo(@NonNull Boolean b) {
if(b) {
}
}
What did you see instead?
import lombok.@NonNull
class A {
void foo(@NonNull Boolean b) {
if(Boolean.TRUE.equals(b)) {
}
}
What is the full stack trace of any errors you encountered?
stacktrace output here