mirror of
https://github.com/tiennm99/lombok.git
synced 2026-06-06 12:13:06 +00:00
Add tests for @EqualsAndHashCode for the attributes of and exclude
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
@lombok.EqualsAndHashCode(of={"x"})
|
||||
final class EqualsAndHashCodeOf {
|
||||
int x;
|
||||
int y;
|
||||
}
|
||||
|
||||
@lombok.EqualsAndHashCode(exclude={"y"})
|
||||
final class EqualsAndHashCodeExclude {
|
||||
int x;
|
||||
int y;
|
||||
}
|
||||
Reference in New Issue
Block a user