aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/BuilderSingularWildcardListsWithToBuilder.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-31 06:33:33 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-01-31 06:33:33 +0100
commitc42bfbae39990b365a5f05eb23895da6203023bc (patch)
tree6bbebbff773571debc5709072e735f2f42469d46 /test/transform/resource/after-delombok/BuilderSingularWildcardListsWithToBuilder.java
parentd31182c4383a5ccc499862d2a8035d49e5202319 (diff)
downloadlombok-c42bfbae39990b365a5f05eb23895da6203023bc.tar.gz
lombok-c42bfbae39990b365a5f05eb23895da6203023bc.tar.bz2
lombok-c42bfbae39990b365a5f05eb23895da6203023bc.zip
[issue #2221] simplified configuration for `@Singular`-generated plural form nullchecks.
Diffstat (limited to 'test/transform/resource/after-delombok/BuilderSingularWildcardListsWithToBuilder.java')
-rw-r--r--test/transform/resource/after-delombok/BuilderSingularWildcardListsWithToBuilder.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/transform/resource/after-delombok/BuilderSingularWildcardListsWithToBuilder.java b/test/transform/resource/after-delombok/BuilderSingularWildcardListsWithToBuilder.java
index 29e53768..59cca1d3 100644
--- a/test/transform/resource/after-delombok/BuilderSingularWildcardListsWithToBuilder.java
+++ b/test/transform/resource/after-delombok/BuilderSingularWildcardListsWithToBuilder.java
@@ -25,7 +25,9 @@ class BuilderSingularWildcardListsWithToBuilder {
}
@java.lang.SuppressWarnings("all")
public BuilderSingularWildcardListsWithToBuilder.BuilderSingularWildcardListsWithToBuilderBuilder objects(final java.util.Collection<?> objects) {
- if (objects == null) throw new java.lang.NullPointerException("objects cannot be null");
+ if (objects == null) {
+ throw new java.lang.NullPointerException("objects cannot be null");
+ }
if (this.objects == null) this.objects = new java.util.ArrayList<java.lang.Object>();
this.objects.addAll(objects);
return this;
@@ -43,7 +45,9 @@ class BuilderSingularWildcardListsWithToBuilder {
}
@java.lang.SuppressWarnings("all")
public BuilderSingularWildcardListsWithToBuilder.BuilderSingularWildcardListsWithToBuilderBuilder numbers(final java.util.Collection<? extends Number> numbers) {
- if (numbers == null) throw new java.lang.NullPointerException("numbers cannot be null");
+ if (numbers == null) {
+ throw new java.lang.NullPointerException("numbers cannot be null");
+ }
if (this.numbers == null) this.numbers = new java.util.ArrayList<Number>();
this.numbers.addAll(numbers);
return this;