[singular][issue #2221] the plural builder method now nullchecks its argument with configurable results.

This commit is contained in:
Reinier Zwitserloot committed 2020-01-28 16:21:39 +01:00
1 parent 6cc74e4229
commit 91a40b8312
79 files changed
+841 -114

No files matched your search

@@ -28,6 +28,8 @@ import lombok.Builder;
return this;
}
public @java.lang.SuppressWarnings("all") BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> bars(final java.util.Collection<? extends T> bars) {
if ((bars == null))
throw new java.lang.NullPointerException("bars cannot be null");
if ((this.bars == null))
this.bars = new java.util.ArrayList<T>();
this.bars.addAll(bars);