From 91a40b83125808d3684ce07c5cb4a2927d0b979c Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sat, 18 Jan 2020 03:10:07 +0100 Subject: [singular][issue #2221] the plural builder method now nullchecks its argument with configurable results. --- test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java | 1 + 1 file changed, 1 insertion(+) (limited to 'test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java') diff --git a/test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java b/test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java index e9e8774a..1c0d378d 100644 --- a/test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java +++ b/test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java @@ -69,6 +69,7 @@ public class SuperBuilderBasicToBuilder { } @java.lang.SuppressWarnings("all") public B items(final java.util.Collection items) { + if (items == null) throw new java.lang.NullPointerException("items cannot be null"); if (this.items == null) this.items = new java.util.ArrayList(); this.items.addAll(items); return self(); -- cgit