aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2019-09-12 21:55:40 +0200
committerRoel Spilker <r.spilker@gmail.com>2019-09-12 21:56:21 +0200
commit80c1b2d2e767f92743b965e3735472e8420848bf (patch)
tree8603e04c782658dec33b2e3dbeeee759a001c5a0 /test
parent693af13472fc4c474edcb163e09cfe87b4c71f3e (diff)
downloadlombok-80c1b2d2e767f92743b965e3735472e8420848bf.tar.gz
lombok-80c1b2d2e767f92743b965e3735472e8420848bf.tar.bz2
lombok-80c1b2d2e767f92743b965e3735472e8420848bf.zip
add test for #2230
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/WitherLegacyStar.java10
-rw-r--r--test/transform/resource/after-ecj/WitherLegacyStar.java11
-rw-r--r--test/transform/resource/before/WitherLegacyStar.java8
3 files changed, 29 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/WitherLegacyStar.java b/test/transform/resource/after-delombok/WitherLegacyStar.java
new file mode 100644
index 00000000..69da9278
--- /dev/null
+++ b/test/transform/resource/after-delombok/WitherLegacyStar.java
@@ -0,0 +1,10 @@
+class WitherLegacyStar {
+ int i;
+ WitherLegacyStar(int i) {
+ this.i = i;
+ }
+ @java.lang.SuppressWarnings("all")
+ public WitherLegacyStar withI(final int i) {
+ return this.i == i ? this : new WitherLegacyStar(i);
+ }
+}
diff --git a/test/transform/resource/after-ecj/WitherLegacyStar.java b/test/transform/resource/after-ecj/WitherLegacyStar.java
new file mode 100644
index 00000000..7aeaa969
--- /dev/null
+++ b/test/transform/resource/after-ecj/WitherLegacyStar.java
@@ -0,0 +1,11 @@
+import lombok.experimental.*;
+class WitherLegacyStar {
+ @Wither int i;
+ WitherLegacyStar(int i) {
+ super();
+ this.i = i;
+ }
+ public @java.lang.SuppressWarnings("all") WitherLegacyStar withI(final int i) {
+ return ((this.i == i) ? this : new WitherLegacyStar(i));
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/WitherLegacyStar.java b/test/transform/resource/before/WitherLegacyStar.java
new file mode 100644
index 00000000..e1a58ae1
--- /dev/null
+++ b/test/transform/resource/before/WitherLegacyStar.java
@@ -0,0 +1,8 @@
+import lombok.experimental.*;
+class WitherLegacyStar {
+ @Wither int i;
+
+ WitherLegacyStar(int i) {
+ this.i = i;
+ }
+}