mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-20 02:17:52 +00:00
[singular][issue #2221] the plural builder method now nullchecks its argument with configurable results.
This commit is contained in:
79 files changed
+841
-114
No files matched your search
+1
@@ -22,6 +22,7 @@ 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 (this.elems == null) this.elems = new java.util.ArrayList<String>();
|
||||
this.elems.addAll(elems);
|
||||
return this;
|
||||
|
||||
Reference in new issue
Block a user