diff options
Diffstat (limited to 'test/transform/resource')
3 files changed, 53 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ToStringNewStyle.java b/test/transform/resource/after-delombok/ToStringNewStyle.java new file mode 100644 index 00000000..0a54bd24 --- /dev/null +++ b/test/transform/resource/after-delombok/ToStringNewStyle.java @@ -0,0 +1,18 @@ +public class ToStringNewStyle { + int b; + double c; + int f; + int d; + int f() { + return 0; + } + int g; + int h; + int i; + int j; + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "ToStringNewStyle(a=" + this.b + ", c=" + this.c + ", e=" + this.d + ", f=" + this.f() + ", g=" + this.g + ", i=" + this.i + ", h=" + this.h + ")"; + } +} diff --git a/test/transform/resource/after-ecj/ToStringNewStyle.java b/test/transform/resource/after-ecj/ToStringNewStyle.java new file mode 100644 index 00000000..cdc6f5bc --- /dev/null +++ b/test/transform/resource/after-ecj/ToStringNewStyle.java @@ -0,0 +1,20 @@ +import lombok.ToString; +public @ToString class ToStringNewStyle { + @ToString.Include(name = "a") int b; + double c; + int f; + @ToString.Include(name = "e") int d; + int g; + @ToString.Include(rank = (- 1)) int h; + int i; + @ToString.Exclude int j; + public ToStringNewStyle() { + super(); + } + @ToString.Include int f() { + return 0; + } + public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { + return (((((((((((((("ToStringNewStyle(a=" + this.b) + ", c=") + this.c) + ", e=") + this.d) + ", f=") + this.f()) + ", g=") + this.g) + ", i=") + this.i) + ", h=") + this.h) + ")"); + } +} diff --git a/test/transform/resource/before/ToStringNewStyle.java b/test/transform/resource/before/ToStringNewStyle.java new file mode 100644 index 00000000..7e436e51 --- /dev/null +++ b/test/transform/resource/before/ToStringNewStyle.java @@ -0,0 +1,15 @@ +import lombok.ToString; +@ToString +public class ToStringNewStyle { + @ToString.Include(name = "a") int b; + double c; + int f; + @ToString.Include(name = "e") int d; + @ToString.Include int f() { + return 0; + } + int g; + @ToString.Include(rank = -1) int h; + int i; + @ToString.Exclude int j; +} |