You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a flavor of NonNullByDefault annotation is present, the equals method is (correctly) generated with an overriding Nullable annotation.
When configuration lombok.addNullAnnotations is present, the equals method is (correctly) generated with a Nullable annotation.
When both are present, the same annotation is generated twice, which does not compile.
To Reproduce
//CONF: lombok.addNullAnnotations = javax
@lombok.EqualsAndHashCode
@javax.annotation.ParametersAreNonnullByDefault
class someClass
Expected behavior
Only one annotation is generated.
Version info
Lombok version 1.18.22
Platform Eclipse 2021-12 (4.22.0)
The text was updated successfully, but these errors were encountered:
jopatai
added a commit
to jopatai/lombok
that referenced
this issue
Feb 25, 2022
Describe the bug
When a flavor of NonNullByDefault annotation is present, the equals method is (correctly) generated with an overriding Nullable annotation.
When configuration lombok.addNullAnnotations is present, the equals method is (correctly) generated with a Nullable annotation.
When both are present, the same annotation is generated twice, which does not compile.
To Reproduce
Expected behavior
Only one annotation is generated.
Version info
The text was updated successfully, but these errors were encountered: