Open blipper opened 2 weeks ago
import lombok.@NonNull class A { void foo(@NonNull Boolean b) { if(b) { } }
import lombok.@NonNull class A { void foo(@NonNull Boolean b) { if(Boolean.TRUE.equals(b)) { } }
stacktrace output here
Thanks @blipper ; indeed seems reasonable not to make any changes to variables annotated as non-nullable. Another case where having nullability included in the type system would help:
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
What did you see instead?
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?