From c42bfbae39990b365a5f05eb23895da6203023bc Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 31 Jan 2020 06:33:33 +0100 Subject: [issue #2221] simplified configuration for `@Singular`-generated plural form nullchecks. --- .../resource/after-ecj/BuilderSingularSets.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'test/transform/resource/after-ecj/BuilderSingularSets.java') diff --git a/test/transform/resource/after-ecj/BuilderSingularSets.java b/test/transform/resource/after-ecj/BuilderSingularSets.java index 6cfa5203..8e1f4484 100644 --- a/test/transform/resource/after-ecj/BuilderSingularSets.java +++ b/test/transform/resource/after-ecj/BuilderSingularSets.java @@ -18,7 +18,9 @@ import lombok.Singular; } public @java.lang.SuppressWarnings("all") BuilderSingularSets.BuilderSingularSetsBuilder dangerMice(final java.util.Collection dangerMice) { if ((dangerMice == null)) - throw new java.lang.NullPointerException("dangerMice cannot be null"); + { + throw new java.lang.NullPointerException("dangerMice cannot be null"); + } if ((this.dangerMice == null)) this.dangerMice = new java.util.ArrayList(); this.dangerMice.addAll(dangerMice); @@ -37,7 +39,9 @@ import lombok.Singular; } public @java.lang.SuppressWarnings("all") BuilderSingularSets.BuilderSingularSetsBuilder octopodes(final java.util.Collection octopodes) { if ((octopodes == null)) - throw new java.lang.NullPointerException("octopodes cannot be null"); + { + throw new java.lang.NullPointerException("octopodes cannot be null"); + } if ((this.octopodes == null)) this.octopodes = new java.util.ArrayList(); this.octopodes.addAll(octopodes); @@ -56,7 +60,9 @@ import lombok.Singular; } public @java.lang.SuppressWarnings("all") BuilderSingularSets.BuilderSingularSetsBuilder rawSet(final java.util.Collection rawSet) { if ((rawSet == null)) - throw new java.lang.NullPointerException("rawSet cannot be null"); + { + throw new java.lang.NullPointerException("rawSet cannot be null"); + } if ((this.rawSet == null)) this.rawSet = new java.util.ArrayList(); this.rawSet.addAll(rawSet); @@ -75,7 +81,9 @@ import lombok.Singular; } public @java.lang.SuppressWarnings("all") BuilderSingularSets.BuilderSingularSetsBuilder stringSet(final java.util.Collection stringSet) { if ((stringSet == null)) - throw new java.lang.NullPointerException("stringSet cannot be null"); + { + throw new java.lang.NullPointerException("stringSet cannot be null"); + } if ((this.stringSet == null)) this.stringSet = new java.util.ArrayList(); this.stringSet.addAll(stringSet); -- cgit