aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform')
-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;
+ }
+}