aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java
diff options
context:
space:
mode:
authorJan Rieke <it@janrieke.de>2018-09-11 14:52:15 +0200
committerJan Rieke <it@janrieke.de>2018-09-11 14:52:15 +0200
commitabb0d2374e0ca6cda55c5ea63f51235111701081 (patch)
tree0bec6d18a505b39a8da6d1bdd0a7aeeeb3711dbe /test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java
parentb42ce5325afbe6202d5d5815a9c74dd64a0ce3de (diff)
downloadlombok-abb0d2374e0ca6cda55c5ea63f51235111701081.tar.gz
lombok-abb0d2374e0ca6cda55c5ea63f51235111701081.tar.bz2
lombok-abb0d2374e0ca6cda55c5ea63f51235111701081.zip
SuperBuilder: generate fillValuesFrom method (javac)
Diffstat (limited to 'test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java')
-rw-r--r--test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java b/test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java
index ae3f5f31..404984b9 100644
--- a/test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java
+++ b/test/transform/resource/after-delombok/SuperBuilderBasicToBuilder.java
@@ -1,5 +1,4 @@
import java.util.List;
-
public class SuperBuilderBasicToBuilder {
public static class Parent {
int field1;
@@ -13,7 +12,7 @@ public class SuperBuilderBasicToBuilder {
@java.lang.SuppressWarnings("all")
protected B $fillValuesFrom(final C instance) {
this.field1(instance.field1);
- this.items(instance.items);
+ this.items(instance.items == null ? java.util.Collections.emptyList() : instance.items);
return self();
}
@java.lang.SuppressWarnings("all")
@@ -97,7 +96,7 @@ public class SuperBuilderBasicToBuilder {
private double field3;
@java.lang.Override
@java.lang.SuppressWarnings("all")
- protected B $fillValuesFrom(C instance) {
+ protected B $fillValuesFrom(final C instance) {
super.$fillValuesFrom(instance);
this.field3(instance.field3);
return self();