[issue #2221] simplified configuration for @Singular-generated plural form nullchecks.

This commit is contained in:
Reinier Zwitserloot committed 2020-01-31 06:33:33 +01:00
1 parent d31182c438
commit c42bfbae39
85 files changed
+517 -643

No files matched your search

@@ -26,7 +26,9 @@ public @Builder class BuilderWithDeprecated {
}
public @java.lang.Deprecated @java.lang.SuppressWarnings("all") BuilderWithDeprecated.BuilderWithDeprecatedBuilder strings(final java.util.Collection<? extends String> strings) {
if ((strings == null))
throw new java.lang.NullPointerException("strings cannot be null");
{
throw new java.lang.NullPointerException("strings cannot be null");
}
if ((this.strings == null))
this.strings = new java.util.ArrayList<String>();
this.strings.addAll(strings);
@@ -45,7 +47,9 @@ public @Builder class BuilderWithDeprecated {
}
public @java.lang.Deprecated @java.lang.SuppressWarnings("all") BuilderWithDeprecated.BuilderWithDeprecatedBuilder numbers(final java.lang.Iterable<? extends Integer> numbers) {
if ((numbers == null))
throw new java.lang.NullPointerException("numbers cannot be null");
{
throw new java.lang.NullPointerException("numbers cannot be null");
}
if ((this.numbers == null))
this.numbers = com.google.common.collect.ImmutableList.builder();
this.numbers.addAll(numbers);