mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 16:14:46 +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
@@ -18,7 +18,9 @@ import lombok.Singular;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularLists.BuilderSingularListsBuilder<T> children(final java.util.Collection<? extends T> children) {
|
||||
if ((children == null))
|
||||
throw new java.lang.NullPointerException("children cannot be null");
|
||||
{
|
||||
throw new java.lang.NullPointerException("children cannot be null");
|
||||
}
|
||||
if ((this.children == null))
|
||||
this.children = new java.util.ArrayList<T>();
|
||||
this.children.addAll(children);
|
||||
@@ -37,7 +39,9 @@ import lombok.Singular;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularLists.BuilderSingularListsBuilder<T> scarves(final java.util.Collection<? extends Number> scarves) {
|
||||
if ((scarves == null))
|
||||
throw new java.lang.NullPointerException("scarves cannot be null");
|
||||
{
|
||||
throw new java.lang.NullPointerException("scarves cannot be null");
|
||||
}
|
||||
if ((this.scarves == null))
|
||||
this.scarves = new java.util.ArrayList<Number>();
|
||||
this.scarves.addAll(scarves);
|
||||
@@ -56,7 +60,9 @@ import lombok.Singular;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") BuilderSingularLists.BuilderSingularListsBuilder<T> rawList(final java.util.Collection<?> rawList) {
|
||||
if ((rawList == null))
|
||||
throw new java.lang.NullPointerException("rawList cannot be null");
|
||||
{
|
||||
throw new java.lang.NullPointerException("rawList cannot be null");
|
||||
}
|
||||
if ((this.rawList == null))
|
||||
this.rawList = new java.util.ArrayList<java.lang.Object>();
|
||||
this.rawList.addAll(rawList);
|
||||
|
||||
Reference in new issue
Block a user