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/BuilderSingularAnnotatedTypes.java10
-rw-r--r--test/transform/resource/before/SuperBuilderSingularAnnotatedTypes.java14
2 files changed, 20 insertions, 4 deletions
diff --git a/test/transform/resource/before/BuilderSingularAnnotatedTypes.java b/test/transform/resource/before/BuilderSingularAnnotatedTypes.java
index 163507b9..d54fed8d 100644
--- a/test/transform/resource/before/BuilderSingularAnnotatedTypes.java
+++ b/test/transform/resource/before/BuilderSingularAnnotatedTypes.java
@@ -1,12 +1,14 @@
//VERSION 8:
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
import java.util.Set;
import java.util.Map;
-
import lombok.NonNull;
import lombok.Singular;
-
+@Target(ElementType.TYPE_USE)
+@interface MyAnnotation {}
@lombok.Builder
class BuilderSingularAnnotatedTypes {
- @Singular private Set<@NonNull String> foos;
- @Singular private Map<@NonNull String, @NonNull Integer> bars;
+ @Singular private Set<@MyAnnotation @NonNull String> foos;
+ @Singular private Map<@MyAnnotation @NonNull String, @MyAnnotation @NonNull Integer> bars;
}
diff --git a/test/transform/resource/before/SuperBuilderSingularAnnotatedTypes.java b/test/transform/resource/before/SuperBuilderSingularAnnotatedTypes.java
new file mode 100644
index 00000000..d26352d2
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderSingularAnnotatedTypes.java
@@ -0,0 +1,14 @@
+//VERSION 8:
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.Set;
+import java.util.Map;
+import lombok.NonNull;
+import lombok.Singular;
+@Target(ElementType.TYPE_USE)
+@interface MyAnnotation {}
+@lombok.experimental.SuperBuilder
+class SuperBuilderSingularAnnotatedTypes {
+ @Singular private Set<@MyAnnotation @NonNull String> foos;
+ @Singular private Map<@MyAnnotation @NonNull String, @MyAnnotation @NonNull Integer> bars;
+}