diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-18 03:10:07 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-01-28 16:21:39 +0100 |
commit | 91a40b83125808d3684ce07c5cb4a2927d0b979c (patch) | |
tree | ee1105aa16d2db522e26ea16cf11579fee81d893 /test/transform/resource/after-ecj/BuilderSingularMaps.java | |
parent | 6cc74e42295b6138629c6b32dd56a99ee8c2c646 (diff) | |
download | lombok-91a40b83125808d3684ce07c5cb4a2927d0b979c.tar.gz lombok-91a40b83125808d3684ce07c5cb4a2927d0b979c.tar.bz2 lombok-91a40b83125808d3684ce07c5cb4a2927d0b979c.zip |
[singular][issue #2221] the plural builder method now nullchecks its argument with configurable results.
Diffstat (limited to 'test/transform/resource/after-ecj/BuilderSingularMaps.java')
-rw-r--r-- | test/transform/resource/after-ecj/BuilderSingularMaps.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/BuilderSingularMaps.java b/test/transform/resource/after-ecj/BuilderSingularMaps.java index 977ee527..d53e7022 100644 --- a/test/transform/resource/after-ecj/BuilderSingularMaps.java +++ b/test/transform/resource/after-ecj/BuilderSingularMaps.java @@ -25,6 +25,8 @@ import lombok.Singular; return this; } 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"); if ((this.women$key == null)) { this.women$key = new java.util.ArrayList<K>(); @@ -56,6 +58,8 @@ import lombok.Singular; return this; } 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"); if ((this.men$key == null)) { this.men$key = new java.util.ArrayList<K>(); @@ -87,6 +91,8 @@ import lombok.Singular; return this; } 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"); if ((this.rawMap$key == null)) { this.rawMap$key = new java.util.ArrayList<java.lang.Object>(); @@ -118,6 +124,8 @@ import lombok.Singular; return this; } 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"); if ((this.stringMap$key == null)) { this.stringMap$key = new java.util.ArrayList<String>(); |