aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/BuilderSingularNullBehavior2.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-31 06:33:33 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-31 06:33:33 +0100
commitc42bfbae39990b365a5f05eb23895da6203023bc (patch)
tree6bbebbff773571debc5709072e735f2f42469d46 /test/transform/resource/before/BuilderSingularNullBehavior2.java
parentd31182c4383a5ccc499862d2a8035d49e5202319 (diff)
downloadlombok-c42bfbae39990b365a5f05eb23895da6203023bc.tar.gz
lombok-c42bfbae39990b365a5f05eb23895da6203023bc.tar.bz2
lombok-c42bfbae39990b365a5f05eb23895da6203023bc.zip
[issue #2221] simplified configuration for `@Singular`-generated plural form nullchecks.
Diffstat (limited to 'test/transform/resource/before/BuilderSingularNullBehavior2.java')
-rw-r--r--test/transform/resource/before/BuilderSingularNullBehavior2.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/transform/resource/before/BuilderSingularNullBehavior2.java b/test/transform/resource/before/BuilderSingularNullBehavior2.java
index 720cf5a8..7d1d0e57 100644
--- a/test/transform/resource/before/BuilderSingularNullBehavior2.java
+++ b/test/transform/resource/before/BuilderSingularNullBehavior2.java
@@ -1,11 +1,10 @@
-//CONF: lombok.addNullAnnotations = checkerframework
+//CONF: lombok.addNullAnnotations = spring
+//CONF: lombok.nonNull.exceptionType = JDK
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;
+ @Singular private List<String> locations;
}