mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 18:15:55 +00:00
[issue #2221] simplified configuration for @Singular-generated plural form nullchecks.
This commit is contained in:
85 files changed
+517
-643
No files matched your search
+3
-1
@@ -13,7 +13,9 @@ import lombok.Singular;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularToBuilderWithNullWithSetterPrefix.BuilderSingularToBuilderWithNullWithSetterPrefixBuilder withElems(final java.util.Collection<? extends String> elems) {
|
||||
if ((elems == null))
|
||||
throw new java.lang.NullPointerException("elems cannot be 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);
|
||||
|
||||
Reference in new issue
Block a user