aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers
diff options
context:
space:
mode:
authorJan Rieke <it@janrieke.de>2018-09-11 16:36:25 +0200
committerJan Rieke <it@janrieke.de>2018-09-11 16:36:25 +0200
commit1f3688fdba92508e091eab39b6131dbca2a8ef83 (patch)
tree17ffeabfab32c6c46f06e20785ae344cd1001c58 /src/core/lombok/javac/handlers
parentabb0d2374e0ca6cda55c5ea63f51235111701081 (diff)
downloadlombok-1f3688fdba92508e091eab39b6131dbca2a8ef83.tar.gz
lombok-1f3688fdba92508e091eab39b6131dbca2a8ef83.tar.bz2
lombok-1f3688fdba92508e091eab39b6131dbca2a8ef83.zip
SuperBuilder: generate fillValuesFrom method (ecj)
Diffstat (limited to 'src/core/lombok/javac/handlers')
-rw-r--r--src/core/lombok/javac/handlers/HandleSuperBuilder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleSuperBuilder.java b/src/core/lombok/javac/handlers/HandleSuperBuilder.java
index 01ac2794..c8727f93 100644
--- a/src/core/lombok/javac/handlers/HandleSuperBuilder.java
+++ b/src/core/lombok/javac/handlers/HandleSuperBuilder.java
@@ -236,8 +236,10 @@ public class HandleSuperBuilder extends JavacAnnotationHandler<SuperBuilder> {
injectFieldAndMarkGenerated(builderType, uncleanField);
}
- // Generate $fillValuesFrom() method in the abstract builder.
- injectMethod(builderType, generateFillValuesMethod(tdParent, superclassBuilderClassExpression != null, builderGenericName, classGenericName, builderFields));
+ if (toBuilder) {
+ // Generate $fillValuesFrom() method in the abstract builder.
+ injectMethod(builderType, generateFillValuesMethod(tdParent, superclassBuilderClassExpression != null, builderGenericName, classGenericName, builderFields));
+ }
// Generate abstract self() and build() methods in the abstract builder.
injectMethod(builderType, generateAbstractSelfMethod(tdParent, superclassBuilderClassExpression != null, builderGenericName));