[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

@@ -22,7 +22,9 @@ class BuilderSingularToBuilderWithNullWithSetterPrefix {
}
@java.lang.SuppressWarnings("all")
public BuilderSingularToBuilderWithNullWithSetterPrefix.BuilderSingularToBuilderWithNullWithSetterPrefixBuilder withElems(final java.util.Collection<? extends String> elems) {
if (elems == null) throw new java.lang.NullPointerException("elems cannot be null");
if (elems == null) {
throw new java.lang.NullPointerException("elems cannot be null");
}
if (this.elems == null) this.elems = new java.util.ArrayList<String>();
this.elems.addAll(elems);
return this;