aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ToStringAutoExclude.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2018-06-18 23:46:42 +0200
committerRoel Spilker <r.spilker@gmail.com>2018-06-18 23:56:27 +0200
commitf241ef8c309b90faacabe66431b9deaebfd7087a (patch)
tree7b46ee984c385ab49930e6721ab390eac285ce13 /test/transform/resource/after-delombok/ToStringAutoExclude.java
parent2264ce492c77f92c03bf75a6c209ed240b247d09 (diff)
downloadlombok-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.java20
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