mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-18 00:15:24 +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
@@ -34,7 +34,9 @@ class BuilderSingularSetsWithSetterPrefix<T> {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderSingularSetsWithSetterPrefix.BuilderSingularSetsWithSetterPrefixBuilder<T> withDangerMice(final java.util.Collection<? extends T> dangerMice) {
|
||||
if (dangerMice == null) throw new java.lang.NullPointerException("dangerMice cannot be null");
|
||||
if (dangerMice == null) {
|
||||
throw new java.lang.NullPointerException("dangerMice cannot be null");
|
||||
}
|
||||
if (this.dangerMice == null) this.dangerMice = new java.util.ArrayList<T>();
|
||||
this.dangerMice.addAll(dangerMice);
|
||||
return this;
|
||||
@@ -52,7 +54,9 @@ class BuilderSingularSetsWithSetterPrefix<T> {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderSingularSetsWithSetterPrefix.BuilderSingularSetsWithSetterPrefixBuilder<T> withOctopodes(final java.util.Collection<? extends Number> octopodes) {
|
||||
if (octopodes == null) throw new java.lang.NullPointerException("octopodes cannot be null");
|
||||
if (octopodes == null) {
|
||||
throw new java.lang.NullPointerException("octopodes cannot be null");
|
||||
}
|
||||
if (this.octopodes == null) this.octopodes = new java.util.ArrayList<Number>();
|
||||
this.octopodes.addAll(octopodes);
|
||||
return this;
|
||||
@@ -70,7 +74,9 @@ class BuilderSingularSetsWithSetterPrefix<T> {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderSingularSetsWithSetterPrefix.BuilderSingularSetsWithSetterPrefixBuilder<T> withRawSet(final java.util.Collection<?> rawSet) {
|
||||
if (rawSet == null) throw new java.lang.NullPointerException("rawSet cannot be null");
|
||||
if (rawSet == null) {
|
||||
throw new java.lang.NullPointerException("rawSet cannot be null");
|
||||
}
|
||||
if (this.rawSet == null) this.rawSet = new java.util.ArrayList<java.lang.Object>();
|
||||
this.rawSet.addAll(rawSet);
|
||||
return this;
|
||||
@@ -88,7 +94,9 @@ class BuilderSingularSetsWithSetterPrefix<T> {
|
||||
}
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public BuilderSingularSetsWithSetterPrefix.BuilderSingularSetsWithSetterPrefixBuilder<T> withStringSet(final java.util.Collection<? extends String> stringSet) {
|
||||
if (stringSet == null) throw new java.lang.NullPointerException("stringSet cannot be null");
|
||||
if (stringSet == null) {
|
||||
throw new java.lang.NullPointerException("stringSet cannot be null");
|
||||
}
|
||||
if (this.stringSet == null) this.stringSet = new java.util.ArrayList<String>();
|
||||
this.stringSet.addAll(stringSet);
|
||||
return this;
|
||||
|
||||
Reference in new issue
Block a user