diff options
author | Roel Spilker <r.spilker@gmail.com> | 2018-06-18 23:46:42 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-06-18 23:56:27 +0200 |
commit | f241ef8c309b90faacabe66431b9deaebfd7087a (patch) | |
tree | 7b46ee984c385ab49930e6721ab390eac285ce13 /test/transform/resource/after-delombok/ToStringAutoExclude.java | |
parent | 2264ce492c77f92c03bf75a6c209ed240b247d09 (diff) | |
download | lombok-f241ef8c309b90faacabe66431b9deaebfd7087a.tar.gz lombok-f241ef8c309b90faacabe66431b9deaebfd7087a.tar.bz2 lombok-f241ef8c309b90faacabe66431b9deaebfd7087a.zip |
Transient fields should by default be excluded from equals and hashCode. Fixes #1724
Diffstat (limited to 'test/transform/resource/after-delombok/ToStringAutoExclude.java')
-rw-r--r-- | test/transform/resource/after-delombok/ToStringAutoExclude.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ToStringAutoExclude.java b/test/transform/resource/after-delombok/ToStringAutoExclude.java new file mode 100644 index 00000000..2beee756 --- /dev/null +++ b/test/transform/resource/after-delombok/ToStringAutoExclude.java @@ -0,0 +1,20 @@ +class ToStringAutoExclude { + int x; + String $a; + transient String b; + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "ToStringAutoExclude(x=" + this.x + ", b=" + this.b + ")"; + } +} +class ToStringAutoExclude2 { + int x; + String $a; + transient String b; + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "ToStringAutoExclude2(x=" + this.x + ", $a=" + this.$a + ", b=" + this.b + ")"; + } +}
\ No newline at end of file |