mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 18:23:13 +00:00
Adding onParam to annotation @EqualsAndHashCode to add individual annotations to the parameters of equals and canEqual.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
@interface Nullable {
|
||||
}
|
||||
|
||||
@lombok.EqualsAndHashCode(onParam=@_{@Nullable})
|
||||
class EqualsAndHashCodeWithOnParam {
|
||||
int x;
|
||||
boolean[] y;
|
||||
Object[] z;
|
||||
String a;
|
||||
String b;
|
||||
}
|
||||
Reference in New Issue
Block a user