[issue #2221] simplified configuration for @Singular-generated plural form nullchecks.

This commit is contained in:
Reinier Zwitserloot committed 2020-01-31 06:33:33 +01:00
1 parent d31182c438
commit c42bfbae39
85 files changed
+517 -643

No files matched your search

@@ -50,7 +50,9 @@ class BuilderWithToBuilder<T> {
}
@java.lang.SuppressWarnings("all")
public BuilderWithToBuilder.BuilderWithToBuilderBuilder<T> bars(final java.util.Collection<? extends T> bars) {
if (bars == null) throw new java.lang.NullPointerException("bars cannot be null");
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);
return this;