mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-06 16:16:53 +00:00
Adding onParam to annotation @EqualsAndHashCode to add individual annotations to the parameters of equals and canEqual.
This commit is contained in:
1 parent
6afa3d2ec9
commit
3d32cd85f1
4 files changed
+82
-10
No files matched your search
@@ -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