diff options
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/BuilderSingularMapsWithSetterPrefix.java | 1 | ||||
-rw-r--r-- | test/transform/resource/before/BuilderSingularNullBehavior1.java | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderSingularMapsWithSetterPrefix.java b/test/transform/resource/before/BuilderSingularMapsWithSetterPrefix.java index 728ad59a..89beb401 100644 --- a/test/transform/resource/before/BuilderSingularMapsWithSetterPrefix.java +++ b/test/transform/resource/before/BuilderSingularMapsWithSetterPrefix.java @@ -1,6 +1,7 @@ //FORMAT: javaLangAsFQN = skip //FORMAT: generated = skip //FORMAT: finalParams = skip +//CONF: lombok.singular.nullCollections = ignore import java.util.Map; import java.util.SortedMap; diff --git a/test/transform/resource/before/BuilderSingularNullBehavior1.java b/test/transform/resource/before/BuilderSingularNullBehavior1.java new file mode 100644 index 00000000..019b6473 --- /dev/null +++ b/test/transform/resource/before/BuilderSingularNullBehavior1.java @@ -0,0 +1,13 @@ +import java.util.List; +import java.util.Collection; + +import lombok.Singular; +import lombok.Singular.NullCollectionBehavior; + +@lombok.Builder +class BuilderSingularNullBehavior1 { + @Singular private List<String> names; + @Singular(nullBehavior = Singular.NullCollectionBehavior.JDK) private List<String> locations; + @Singular(nullBehavior = NullCollectionBehavior.GUAVA) private List<String> whatevers; + @Singular(nullBehavior = lombok.Singular.NullCollectionBehavior.IGNORE) private List<String> doohickeys; +} |