aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/GetterTypeAnnosCopy.java16
-rw-r--r--test/transform/resource/before/GetterTypeAnnosNoCopy.java14
2 files changed, 30 insertions, 0 deletions
diff --git a/test/transform/resource/before/GetterTypeAnnosCopy.java b/test/transform/resource/before/GetterTypeAnnosCopy.java
new file mode 100644
index 00000000..69152e1f
--- /dev/null
+++ b/test/transform/resource/before/GetterTypeAnnosCopy.java
@@ -0,0 +1,16 @@
+//CONF: lombok.copyAnnotations += TA
+
+import lombok.Getter;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class GetterTypeAnnos {
+ @Getter
+ @TA List<@TA String> foo;
+}
diff --git a/test/transform/resource/before/GetterTypeAnnosNoCopy.java b/test/transform/resource/before/GetterTypeAnnosNoCopy.java
new file mode 100644
index 00000000..48513f32
--- /dev/null
+++ b/test/transform/resource/before/GetterTypeAnnosNoCopy.java
@@ -0,0 +1,14 @@
+import lombok.Getter;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class GetterTypeAnnos {
+ @Getter
+ @TA List<@TA String> foo;
+}