diff options
16 files changed, 330 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); + } +} diff --git a/test/transform/resource/before/BuilderTypeAnnosCopy.java b/test/transform/resource/before/BuilderTypeAnnosCopy.java new file mode 100644 index 00000000..e5ea9e41 --- /dev/null +++ b/test/transform/resource/before/BuilderTypeAnnosCopy.java @@ -0,0 +1,14 @@ +//CONF: lombok.copyAnnotations += TA + +import java.lang.annotation.ElementType; +import java.lang.annotation.Target; +import java.util.List; + +@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) +@interface TA { +} + +@lombok.Builder +class BuilderTypeAnnos { + private @TA List<@TA String> foo; +} diff --git a/test/transform/resource/before/BuilderTypeAnnosNoCopy.java b/test/transform/resource/before/BuilderTypeAnnosNoCopy.java new file mode 100644 index 00000000..2defba7b --- /dev/null +++ b/test/transform/resource/before/BuilderTypeAnnosNoCopy.java @@ -0,0 +1,12 @@ +import java.lang.annotation.ElementType; +import java.lang.annotation.Target; +import java.util.List; + +@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) +@interface TA { +} + +@lombok.Builder +class BuilderTypeAnnos { + private @TA List<@TA String> foo; +} diff --git a/test/transform/resource/before/ConstructorsTypeAnnosCopy.java b/test/transform/resource/before/ConstructorsTypeAnnosCopy.java new file mode 100644 index 00000000..229927c3 --- /dev/null +++ b/test/transform/resource/before/ConstructorsTypeAnnosCopy.java @@ -0,0 +1,14 @@ +//CONF: lombok.copyAnnotations += TA + +import java.lang.annotation.ElementType; +import java.lang.annotation.Target; +import java.util.List; + +@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) +@interface TA { +} + +@lombok.AllArgsConstructor +class ConstructorsTypeAnnos { + @TA List<@TA String> foo; +} diff --git a/test/transform/resource/before/ConstructorsTypeAnnosNoCopy.java b/test/transform/resource/before/ConstructorsTypeAnnosNoCopy.java new file mode 100644 index 00000000..7bc27008 --- /dev/null +++ b/test/transform/resource/before/ConstructorsTypeAnnosNoCopy.java @@ -0,0 +1,12 @@ +import java.lang.annotation.ElementType; +import java.lang.annotation.Target; +import java.util.List; + +@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) +@interface TA { +} + +@lombok.AllArgsConstructor +class ConstructorsTypeAnnos { + @TA List<@TA String> foo; +} diff --git a/test/transform/resource/before/SetterTypeAnnosCopy.java b/test/transform/resource/before/SetterTypeAnnosCopy.java new file mode 100644 index 00000000..d9d086f0 --- /dev/null +++ b/test/transform/resource/before/SetterTypeAnnosCopy.java @@ -0,0 +1,16 @@ +//CONF: lombok.copyAnnotations += TA + +import lombok.Setter; + +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 { + @Setter + @TA List<@TA String> foo; +} diff --git a/test/transform/resource/before/SetterTypeAnnosNoCopy.java b/test/transform/resource/before/SetterTypeAnnosNoCopy.java new file mode 100644 index 00000000..e3666543 --- /dev/null +++ b/test/transform/resource/before/SetterTypeAnnosNoCopy.java @@ -0,0 +1,14 @@ +import lombok.Setter; + +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 { + @Setter + @TA List<@TA String> foo; +} diff --git a/test/transform/resource/before/WitherTypeAnnosCopy.java b/test/transform/resource/before/WitherTypeAnnosCopy.java new file mode 100644 index 00000000..645682f5 --- /dev/null +++ b/test/transform/resource/before/WitherTypeAnnosCopy.java @@ -0,0 +1,19 @@ +//CONF: lombok.copyAnnotations += TA + +import lombok.experimental.Wither; + +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 { + @Wither final @TA List<@TA String> foo; + + WitherTypeAnnos(@TA List<@TA String> foo) { + this.foo = foo; + } +} diff --git a/test/transform/resource/before/WitherTypeAnnosNoCopy.java b/test/transform/resource/before/WitherTypeAnnosNoCopy.java new file mode 100644 index 00000000..d278af55 --- /dev/null +++ b/test/transform/resource/before/WitherTypeAnnosNoCopy.java @@ -0,0 +1,17 @@ +import lombok.experimental.Wither; + +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 { + @Wither final @TA List<@TA String> foo; + + WitherTypeAnnos(@TA List<@TA String> foo) { + this.foo = foo; + } +} |