diff options
author | Roel Spilker <r.spilker@gmail.com> | 2019-08-26 20:08:19 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2019-08-26 20:31:00 +0200 |
commit | ed3c8a67e2d757b0f15c5f2b53b7d6497f49db06 (patch) | |
tree | 7941d8ec8dd3fee5bc79a2968ead7b25eb79e60c /src/core/lombok/eclipse/handlers/HandleSetter.java | |
parent | 38a48e8a853f436c9243503e6193806ec151c84c (diff) | |
download | lombok-ed3c8a67e2d757b0f15c5f2b53b7d6497f49db06.tar.gz lombok-ed3c8a67e2d757b0f15c5f2b53b7d6497f49db06.tar.bz2 lombok-ed3c8a67e2d757b0f15c5f2b53b7d6497f49db06.zip |
Fixes #2156: also clone the annotations on the setter.
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleSetter.java')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleSetter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSetter.java b/src/core/lombok/eclipse/handlers/HandleSetter.java index bfa60db0..8180c3fa 100644 --- a/src/core/lombok/eclipse/handlers/HandleSetter.java +++ b/src/core/lombok/eclipse/handlers/HandleSetter.java @@ -226,7 +226,7 @@ public class HandleSetter extends EclipseAnnotationHandler<Setter> { if (isFieldDeprecated(fieldNode) || deprecate) { deprecated = new Annotation[] { generateDeprecatedAnnotation(source) }; } - method.annotations = mergeAnnotations(copyAnnotations(source, onMethod.toArray(new Annotation[0]), deprecated), findCopyableToSetterAnnotations(fieldNode)); + method.annotations = copyAnnotations(source, onMethod.toArray(new Annotation[0]), deprecated, findCopyableToSetterAnnotations(fieldNode)); Argument param = new Argument(paramName, p, copyType(field.type, source), Modifier.FINAL); param.sourceStart = pS; param.sourceEnd = pE; method.arguments = new Argument[] { param }; |