aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/BuilderSingularMaps.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/BuilderSingularMaps.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/BuilderSingularMaps.java')
-rw-r--r--test/transform/resource/after-ecj/BuilderSingularMaps.java16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/transform/resource/after-ecj/BuilderSingularMaps.java b/test/transform/resource/after-ecj/BuilderSingularMaps.java
index d53e7022..072cf5e7 100644
--- a/test/transform/resource/after-ecj/BuilderSingularMaps.java
+++ b/test/transform/resource/after-ecj/BuilderSingularMaps.java
@@ -26,7 +26,9 @@ import lombok.Singular;
}
public @java.lang.SuppressWarnings("all") BuilderSingularMaps.BuilderSingularMapsBuilder<K, V> women(final java.util.Map<? extends K, ? extends V> women) {
if ((women == null))
- throw new java.lang.NullPointerException("women cannot be null");
+ {
+ throw new java.lang.NullPointerException("women cannot be null");
+ }
if ((this.women$key == null))
{
this.women$key = new java.util.ArrayList<K>();
@@ -59,7 +61,9 @@ import lombok.Singular;
}
public @java.lang.SuppressWarnings("all") BuilderSingularMaps.BuilderSingularMapsBuilder<K, V> men(final java.util.Map<? extends K, ? extends Number> men) {
if ((men == null))
- throw new java.lang.NullPointerException("men cannot be null");
+ {
+ throw new java.lang.NullPointerException("men cannot be null");
+ }
if ((this.men$key == null))
{
this.men$key = new java.util.ArrayList<K>();
@@ -92,7 +96,9 @@ import lombok.Singular;
}
public @java.lang.SuppressWarnings("all") BuilderSingularMaps.BuilderSingularMapsBuilder<K, V> rawMap(final java.util.Map<?, ?> rawMap) {
if ((rawMap == null))
- throw new java.lang.NullPointerException("rawMap cannot be null");
+ {
+ throw new java.lang.NullPointerException("rawMap cannot be null");
+ }
if ((this.rawMap$key == null))
{
this.rawMap$key = new java.util.ArrayList<java.lang.Object>();
@@ -125,7 +131,9 @@ import lombok.Singular;
}
public @java.lang.SuppressWarnings("all") BuilderSingularMaps.BuilderSingularMapsBuilder<K, V> stringMap(final java.util.Map<? extends String, ? extends V> stringMap) {
if ((stringMap == null))
- throw new java.lang.NullPointerException("stringMap cannot be null");
+ {
+ throw new java.lang.NullPointerException("stringMap cannot be null");
+ }
if ((this.stringMap$key == null))
{
this.stringMap$key = new java.util.ArrayList<String>();