mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
[bugfix][@Jacksonized] javac handler of jacksonized checked for existing jackson annotations on the wrong node.
This commit is contained in:
1 file changed
+2
-2
@@ -116,8 +116,8 @@ public class HandleJacksonized extends JavacAnnotationHandler<Jacksonized> {
|
||||
// Add @JsonIgnore to all transient fields. It will be automatically copied to the getter/setters later.
|
||||
for (JavacNode javacNode : tdNode.down()) {
|
||||
if (javacNode.getKind() == Kind.FIELD) {
|
||||
if (hasAnnotation(annotationNode, JacksonAnnotationType.JSON_PROPERTY2) ||
|
||||
hasAnnotation(annotationNode, JacksonAnnotationType.JSON_IGNORE2)) {
|
||||
if (hasAnnotation(javacNode, JacksonAnnotationType.JSON_PROPERTY2) ||
|
||||
hasAnnotation(javacNode, JacksonAnnotationType.JSON_IGNORE2)) {
|
||||
|
||||
return;
|
||||
} else if (javacNode.isTransient()) {
|
||||
|
||||
Reference in new issue
Block a user