diff options
author | Jan Rieke <rieke@subshell.com> | 2018-06-04 17:52:38 +0200 |
---|---|---|
committer | Jan Rieke <rieke@subshell.com> | 2018-06-04 17:52:38 +0200 |
commit | e2fc6fa56433e5a62939bc2a3d92a4372539f3db (patch) | |
tree | 9a7a989a7758f0dc00190677ef08c149880c38e1 /src/core/lombok/eclipse | |
parent | d4fa7c583bcef17663a7b0259c01ce0792cba29c (diff) | |
download | lombok-e2fc6fa56433e5a62939bc2a3d92a4372539f3db.tar.gz lombok-e2fc6fa56433e5a62939bc2a3d92a4372539f3db.tar.bz2 lombok-e2fc6fa56433e5a62939bc2a3d92a4372539f3db.zip |
SuperBuilder support for abstract classes
Diffstat (limited to 'src/core/lombok/eclipse')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleSuperBuilder.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java index 3a92da4a..1100cbf0 100644 --- a/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java +++ b/src/core/lombok/eclipse/handlers/HandleSuperBuilder.java @@ -333,6 +333,11 @@ public class HandleSuperBuilder extends EclipseAnnotationHandler<SuperBuilder> { injectMethod(builderType, generateCleanMethod(builderFields, builderType, ast)); } + if ((td.modifiers & ClassFileConstants.AccAbstract) != 0) { + // Abstract classes to not get the Builder implementation nor the builder() method. + return; + } + // Create the builder implementation class. EclipseNode builderImplType = findInnerClass(tdParent, builderImplClassName); if (builderImplType == null) { |