mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-18 08:14:57 +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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user