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