mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-19 08:15:20 +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
@@ -38,7 +38,9 @@ public class BuilderDefaultsWarnings {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderDefaultsWarnings.BuilderDefaultsWarningsBuilder items(final java.util.Collection<? extends String> items) {
|
||||
if (items == null) throw new java.lang.NullPointerException("items cannot be null");
|
||||
if (items == null) {
|
||||
throw new java.lang.NullPointerException("items cannot be null");
|
||||
}
|
||||
if (this.items == null) this.items = new java.util.ArrayList<String>();
|
||||
this.items.addAll(items);
|
||||
return this;
|
||||
|
||||
Reference in new issue
Block a user