diff options
author | Jan Rieke <it@janrieke.de> | 2018-09-11 16:36:25 +0200 |
---|---|---|
committer | Jan Rieke <it@janrieke.de> | 2018-09-11 16:36:25 +0200 |
commit | 1f3688fdba92508e091eab39b6131dbca2a8ef83 (patch) | |
tree | 17ffeabfab32c6c46f06e20785ae344cd1001c58 /src/core/lombok/javac/handlers/HandleSuperBuilder.java | |
parent | abb0d2374e0ca6cda55c5ea63f51235111701081 (diff) | |
download | lombok-1f3688fdba92508e091eab39b6131dbca2a8ef83.tar.gz lombok-1f3688fdba92508e091eab39b6131dbca2a8ef83.tar.bz2 lombok-1f3688fdba92508e091eab39b6131dbca2a8ef83.zip |
SuperBuilder: generate fillValuesFrom method (ecj)
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleSuperBuilder.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleSuperBuilder.java | 6 |
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)); |