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. --- test/transform/resource/after-ecj/BuilderWithDeprecated.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/transform/resource/after-ecj/BuilderWithDeprecated.java') diff --git a/test/transform/resource/after-ecj/BuilderWithDeprecated.java b/test/transform/resource/after-ecj/BuilderWithDeprecated.java index 9dcddc49..724a25e6 100644 --- a/test/transform/resource/after-ecj/BuilderWithDeprecated.java +++ b/test/transform/resource/after-ecj/BuilderWithDeprecated.java @@ -26,7 +26,9 @@ public @Builder class BuilderWithDeprecated { } public @java.lang.Deprecated @java.lang.SuppressWarnings("all") BuilderWithDeprecated.BuilderWithDeprecatedBuilder strings(final java.util.Collection strings) { if ((strings == null)) - throw new java.lang.NullPointerException("strings cannot be null"); + { + throw new java.lang.NullPointerException("strings cannot be null"); + } if ((this.strings == null)) this.strings = new java.util.ArrayList(); this.strings.addAll(strings); @@ -45,7 +47,9 @@ public @Builder class BuilderWithDeprecated { } public @java.lang.Deprecated @java.lang.SuppressWarnings("all") BuilderWithDeprecated.BuilderWithDeprecatedBuilder numbers(final java.lang.Iterable numbers) { if ((numbers == null)) - throw new java.lang.NullPointerException("numbers cannot be null"); + { + throw new java.lang.NullPointerException("numbers cannot be null"); + } if ((this.numbers == null)) this.numbers = com.google.common.collect.ImmutableList.builder(); this.numbers.addAll(numbers); -- cgit