diff options
author | Bulgakov Alexander <buls@yandex.ru> | 2019-05-07 10:49:50 +0300 |
---|---|---|
committer | Bulgakov Alexander <buls@yandex.ru> | 2019-05-07 10:49:50 +0300 |
commit | 8f8cbae631ff2e7091a2a9b70339b778177122cc (patch) | |
tree | 936824b3998eff0bde662655ec89e1175e6e4c0e /src/core/lombok/javac/handlers/HandleBuilder.java | |
parent | 06fb1034eac690f5775e104c4bc82df3ad929cc9 (diff) | |
parent | 3496a3e9633cd6526745bcc390877653afad7f09 (diff) | |
download | lombok-8f8cbae631ff2e7091a2a9b70339b778177122cc.tar.gz lombok-8f8cbae631ff2e7091a2a9b70339b778177122cc.tar.bz2 lombok-8f8cbae631ff2e7091a2a9b70339b778177122cc.zip |
Merge remote-tracking branch 'lombok/master' into feature/typeInferenceImprovements
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleBuilder.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleBuilder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lombok/javac/handlers/HandleBuilder.java b/src/core/lombok/javac/handlers/HandleBuilder.java index 2eaba0fb..d758f602 100644 --- a/src/core/lombok/javac/handlers/HandleBuilder.java +++ b/src/core/lombok/javac/handlers/HandleBuilder.java @@ -750,10 +750,11 @@ public class HandleBuilder extends JavacAnnotationHandler<Builder> { JavacTreeMaker maker = fieldNode.getTreeMaker(); - JCMethodDecl newMethod = HandleSetter.createSetter(toJavacModifier(access), deprecate, fieldNode, maker, setterName, nameOfSetFlag, chain, source, List.<JCAnnotation>nil(), annosOnParam); + List<JCAnnotation> methodAnns = JavacHandlerUtil.findCopyableToSetterAnnotations(originalFieldNode); + JCMethodDecl newMethod = HandleSetter.createSetter(toJavacModifier(access), deprecate, fieldNode, maker, setterName, nameOfSetFlag, chain, source, methodAnns, annosOnParam); recursiveSetGeneratedBy(newMethod, source.get(), builderType.getContext()); copyJavadoc(originalFieldNode, newMethod, CopyJavadoc.SETTER); - + injectMethod(builderType, newMethod); } |