aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/BuilderSingularLists.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-ecj/BuilderSingularLists.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-ecj/BuilderSingularLists.java')
-rw-r--r--test/transform/resource/after-ecj/BuilderSingularLists.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/transform/resource/after-ecj/BuilderSingularLists.java b/test/transform/resource/after-ecj/BuilderSingularLists.java
index c201a32b..712b5e86 100644
--- a/test/transform/resource/after-ecj/BuilderSingularLists.java
+++ b/test/transform/resource/after-ecj/BuilderSingularLists.java
@@ -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);