mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 12:22:31 +00:00
Transient fields should by default be excluded from equals and hashCode. Fixes #1724
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
@lombok.EqualsAndHashCode
|
||||
class EqualsAndHashCodeAutoExclude {
|
||||
int x;
|
||||
String $a;
|
||||
transient String b;
|
||||
}
|
||||
@lombok.EqualsAndHashCode
|
||||
class EqualsAndHashCodeAutoExclude2 {
|
||||
int x;
|
||||
@lombok.EqualsAndHashCode.Include
|
||||
String $a;
|
||||
@lombok.EqualsAndHashCode.Include
|
||||
transient String b;
|
||||
}
|
||||
Reference in New Issue
Block a user