aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers/HandleSetter.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-05-07 00:08:49 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-05-07 00:08:49 +0200
commit42f36e66fec9554205ed7caaab33c1c7be0db90b (patch)
treea0b1034dbbec38cc2326ae32741dafe5e3efba4b /src/core/lombok/eclipse/handlers/HandleSetter.java
parente69a991fcb141fb24de8afb433c753d35821b1c3 (diff)
downloadlombok-42f36e66fec9554205ed7caaab33c1c7be0db90b.tar.gz
lombok-42f36e66fec9554205ed7caaab33c1c7be0db90b.tar.bz2
lombok-42f36e66fec9554205ed7caaab33c1c7be0db90b.zip
[fixes #1981][fixes #1961] Hardcoded some knowledge about how to copy jackson’s `@JsonProperty`.
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleSetter.java')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleSetter.java2
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 d70d4acd..4ea83cf6 100644
--- a/src/core/lombok/eclipse/handlers/HandleSetter.java
+++ b/src/core/lombok/eclipse/handlers/HandleSetter.java
@@ -220,7 +220,7 @@ public class HandleSetter extends EclipseAnnotationHandler<Setter> {
if (isFieldDeprecated(fieldNode) || deprecate) {
deprecated = new Annotation[] { generateDeprecatedAnnotation(source) };
}
- method.annotations = copyAnnotations(source, onMethod.toArray(new Annotation[0]), deprecated);
+ method.annotations = mergeAnnotations(copyAnnotations(source, onMethod.toArray(new Annotation[0]), deprecated), findCopyableToSetterAnnotations(fieldNode));
Argument param = new Argument(field.name, p, copyType(field.type, source), Modifier.FINAL);
param.sourceStart = pS; param.sourceEnd = pE;
method.arguments = new Argument[] { param };