diff options
Diffstat (limited to 'test/transform/resource/after-ecj/BuilderSingularWildcardListsWithToBuilder.java')
-rw-r--r-- | test/transform/resource/after-ecj/BuilderSingularWildcardListsWithToBuilder.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/transform/resource/after-ecj/BuilderSingularWildcardListsWithToBuilder.java b/test/transform/resource/after-ecj/BuilderSingularWildcardListsWithToBuilder.java index e8db5ffd..e336c3fc 100644 --- a/test/transform/resource/after-ecj/BuilderSingularWildcardListsWithToBuilder.java +++ b/test/transform/resource/after-ecj/BuilderSingularWildcardListsWithToBuilder.java @@ -82,6 +82,11 @@ import lombok.Singular; return new BuilderSingularWildcardListsWithToBuilderBuilder(); } public @java.lang.SuppressWarnings("all") BuilderSingularWildcardListsWithToBuilderBuilder toBuilder() { - return new BuilderSingularWildcardListsWithToBuilderBuilder().objects(((this.objects == null) ? java.util.Collections.<java.lang.Object>emptyList() : this.objects)).numbers(((this.numbers == null) ? java.util.Collections.<Number>emptyList() : this.numbers)); + final BuilderSingularWildcardListsWithToBuilderBuilder builder = new BuilderSingularWildcardListsWithToBuilderBuilder(); + if ((this.objects != null)) + builder.objects(this.objects); + if ((this.numbers != null)) + builder.numbers(this.numbers); + return builder; } }
\ No newline at end of file |