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/BuilderSingularNullBehavior2.java11
-rw-r--r--test/transform/resource/before/EqualsAndHashCodeWithNNBD.java8
-rw-r--r--test/transform/resource/before/NullLibrary1.java7
-rw-r--r--test/transform/resource/before/NullLibrary2.java7
4 files changed, 25 insertions, 8 deletions
diff --git a/test/transform/resource/before/BuilderSingularNullBehavior2.java b/test/transform/resource/before/BuilderSingularNullBehavior2.java
new file mode 100644
index 00000000..720cf5a8
--- /dev/null
+++ b/test/transform/resource/before/BuilderSingularNullBehavior2.java
@@ -0,0 +1,11 @@
+//CONF: lombok.addNullAnnotations = checkerframework
+import java.util.List;
+
+import lombok.Singular;
+import lombok.Singular.NullCollectionBehavior;
+
+@lombok.Builder
+class BuilderSingularNullBehavior2 {
+ @Singular(nullBehavior = Singular.NullCollectionBehavior.JDK) private List<String> locations;
+ @Singular(nullBehavior = lombok.Singular.NullCollectionBehavior.IGNORE) private List<String> doohickeys;
+}
diff --git a/test/transform/resource/before/EqualsAndHashCodeWithNNBD.java b/test/transform/resource/before/EqualsAndHashCodeWithNNBD.java
deleted file mode 100644
index dc86cb55..00000000
--- a/test/transform/resource/before/EqualsAndHashCodeWithNNBD.java
+++ /dev/null
@@ -1,8 +0,0 @@
-// version 8:
-import javax.annotation.ParametersAreNonnullByDefault;
-@ParametersAreNonnullByDefault
-class EqualsAndHashCodeWithNNBD {
- @lombok.EqualsAndHashCode @org.eclipse.jdt.annotation.NonNullByDefault
- static class Inner {
- }
-}
diff --git a/test/transform/resource/before/NullLibrary1.java b/test/transform/resource/before/NullLibrary1.java
new file mode 100644
index 00000000..95433270
--- /dev/null
+++ b/test/transform/resource/before/NullLibrary1.java
@@ -0,0 +1,7 @@
+//CONF: lombok.addNullAnnotations = eclipse
+@lombok.EqualsAndHashCode
+@lombok.ToString
+@lombok.AllArgsConstructor
+public class NullLibrary1 {
+ @lombok.With String foo;
+}
diff --git a/test/transform/resource/before/NullLibrary2.java b/test/transform/resource/before/NullLibrary2.java
new file mode 100644
index 00000000..17b1e6e0
--- /dev/null
+++ b/test/transform/resource/before/NullLibrary2.java
@@ -0,0 +1,7 @@
+//CONF: lombok.addNullAnnotations = spring
+@lombok.EqualsAndHashCode
+@lombok.ToString
+@lombok.AllArgsConstructor
+public class NullLibrary2 {
+ @lombok.With String foo;
+}