aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/BuilderTypeAnnosCopy.java51
-rw-r--r--test/transform/resource/after-delombok/BuilderTypeAnnosNoCopy.java51
-rw-r--r--test/transform/resource/after-delombok/ConstructorsTypeAnnosCopy.java17
-rw-r--r--test/transform/resource/after-delombok/ConstructorsTypeAnnosNoCopy.java17
-rw-r--r--test/transform/resource/after-delombok/SetterTypeAnnosCopy.java17
-rw-r--r--test/transform/resource/after-delombok/SetterTypeAnnosNoCopy.java17
-rw-r--r--test/transform/resource/after-delombok/WitherTypeAnnosCopy.java21
-rw-r--r--test/transform/resource/after-delombok/WitherTypeAnnosNoCopy.java21
8 files changed, 212 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/BuilderTypeAnnosCopy.java b/test/transform/resource/after-delombok/BuilderTypeAnnosCopy.java
new file mode 100644
index 00000000..8b0ea537
--- /dev/null
+++ b/test/transform/resource/after-delombok/BuilderTypeAnnosCopy.java
@@ -0,0 +1,51 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class BuilderTypeAnnos {
+ @TA
+ private List<@TA String> foo;
+
+ @java.lang.SuppressWarnings("all")
+ BuilderTypeAnnos(@TA final List<@TA String> foo) {
+ this.foo = foo;
+ }
+
+
+ @java.lang.SuppressWarnings("all")
+ public static class BuilderTypeAnnosBuilder {
+ @java.lang.SuppressWarnings("all")
+ private List<@TA String> foo;
+
+ @java.lang.SuppressWarnings("all")
+ BuilderTypeAnnosBuilder() {
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public BuilderTypeAnnosBuilder foo(@TA final List<@TA String> foo) {
+ this.foo = foo;
+ return this;
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public BuilderTypeAnnos build() {
+ return new BuilderTypeAnnos(foo);
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "BuilderTypeAnnos.BuilderTypeAnnosBuilder(foo=" + this.foo + ")";
+ }
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public static BuilderTypeAnnosBuilder builder() {
+ return new BuilderTypeAnnosBuilder();
+ }
+}
+
diff --git a/test/transform/resource/after-delombok/BuilderTypeAnnosNoCopy.java b/test/transform/resource/after-delombok/BuilderTypeAnnosNoCopy.java
new file mode 100644
index 00000000..b08e03a3
--- /dev/null
+++ b/test/transform/resource/after-delombok/BuilderTypeAnnosNoCopy.java
@@ -0,0 +1,51 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class BuilderTypeAnnos {
+ @TA
+ private List<@TA String> foo;
+
+ @java.lang.SuppressWarnings("all")
+ BuilderTypeAnnos(final List<@TA String> foo) {
+ this.foo = foo;
+ }
+
+
+ @java.lang.SuppressWarnings("all")
+ public static class BuilderTypeAnnosBuilder {
+ @java.lang.SuppressWarnings("all")
+ private List<@TA String> foo;
+
+ @java.lang.SuppressWarnings("all")
+ BuilderTypeAnnosBuilder() {
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public BuilderTypeAnnosBuilder foo(final List<@TA String> foo) {
+ this.foo = foo;
+ return this;
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public BuilderTypeAnnos build() {
+ return new BuilderTypeAnnos(foo);
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "BuilderTypeAnnos.BuilderTypeAnnosBuilder(foo=" + this.foo + ")";
+ }
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public static BuilderTypeAnnosBuilder builder() {
+ return new BuilderTypeAnnosBuilder();
+ }
+}
+
diff --git a/test/transform/resource/after-delombok/ConstructorsTypeAnnosCopy.java b/test/transform/resource/after-delombok/ConstructorsTypeAnnosCopy.java
new file mode 100644
index 00000000..28d6ed09
--- /dev/null
+++ b/test/transform/resource/after-delombok/ConstructorsTypeAnnosCopy.java
@@ -0,0 +1,17 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class ConstructorsTypeAnnos {
+ @TA
+ List<@TA String> foo;
+
+ @java.lang.SuppressWarnings("all")
+ public ConstructorsTypeAnnos(@TA final List<@TA String> foo) {
+ this.foo = foo;
+ }
+}
diff --git a/test/transform/resource/after-delombok/ConstructorsTypeAnnosNoCopy.java b/test/transform/resource/after-delombok/ConstructorsTypeAnnosNoCopy.java
new file mode 100644
index 00000000..e27131ef
--- /dev/null
+++ b/test/transform/resource/after-delombok/ConstructorsTypeAnnosNoCopy.java
@@ -0,0 +1,17 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class ConstructorsTypeAnnos {
+ @TA
+ List<@TA String> foo;
+
+ @java.lang.SuppressWarnings("all")
+ public ConstructorsTypeAnnos(final List<@TA String> foo) {
+ this.foo = foo;
+ }
+}
diff --git a/test/transform/resource/after-delombok/SetterTypeAnnosCopy.java b/test/transform/resource/after-delombok/SetterTypeAnnosCopy.java
new file mode 100644
index 00000000..b45c3234
--- /dev/null
+++ b/test/transform/resource/after-delombok/SetterTypeAnnosCopy.java
@@ -0,0 +1,17 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class SetterTypeAnnos {
+ @TA
+ List<@TA String> foo;
+
+ @java.lang.SuppressWarnings("all")
+ public void setFoo(@TA final List<@TA String> foo) {
+ this.foo = foo;
+ }
+}
diff --git a/test/transform/resource/after-delombok/SetterTypeAnnosNoCopy.java b/test/transform/resource/after-delombok/SetterTypeAnnosNoCopy.java
new file mode 100644
index 00000000..e773bd9c
--- /dev/null
+++ b/test/transform/resource/after-delombok/SetterTypeAnnosNoCopy.java
@@ -0,0 +1,17 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class SetterTypeAnnos {
+ @TA
+ List<@TA String> foo;
+
+ @java.lang.SuppressWarnings("all")
+ public void setFoo(final List<@TA String> foo) {
+ this.foo = foo;
+ }
+}
diff --git a/test/transform/resource/after-delombok/WitherTypeAnnosCopy.java b/test/transform/resource/after-delombok/WitherTypeAnnosCopy.java
new file mode 100644
index 00000000..8cbb7e5d
--- /dev/null
+++ b/test/transform/resource/after-delombok/WitherTypeAnnosCopy.java
@@ -0,0 +1,21 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class WitherTypeAnnos {
+ @TA
+ final List<@TA String> foo;
+
+ WitherTypeAnnos(@TA List<@TA String> foo) {
+ this.foo = foo;
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public WitherTypeAnnos withFoo(@TA final List<@TA String> foo) {
+ return this.foo == foo ? this : new WitherTypeAnnos(foo);
+ }
+}
diff --git a/test/transform/resource/after-delombok/WitherTypeAnnosNoCopy.java b/test/transform/resource/after-delombok/WitherTypeAnnosNoCopy.java
new file mode 100644
index 00000000..18c25e04
--- /dev/null
+++ b/test/transform/resource/after-delombok/WitherTypeAnnosNoCopy.java
@@ -0,0 +1,21 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class WitherTypeAnnos {
+ @TA
+ final List<@TA String> foo;
+
+ WitherTypeAnnos(@TA List<@TA String> foo) {
+ this.foo = foo;
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public WitherTypeAnnos withFoo(final List<@TA String> foo) {
+ return this.foo == foo ? this : new WitherTypeAnnos(foo);
+ }
+}