Skip to content

Commit 45e72e2

Browse files
mandreanrzwitserloot
authored andcommitted
feat: Add Jackson 3 databind/dataformat annotations to HandlerUtil copy lists
Add tools.jackson.databind.annotation and tools.jackson.dataformat.xml.annotation entries to the Jackson annotation copy lists, so that Jackson 3 databind and format-specific annotations are correctly copied to getters, setters, and builders.
1 parent 184d423 commit 45e72e2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/core/lombok/core/handlers/HandlerUtil.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ public static int primeForNull() {
453453
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper",
454454
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty",
455455
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText",
456+
"tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper",
457+
"tools.jackson.dataformat.xml.annotation.JacksonXmlProperty",
458+
"tools.jackson.dataformat.xml.annotation.JacksonXmlText",
456459
}));
457460
JACKSON_COPY_TO_SETTER_ANNOTATIONS = Collections.unmodifiableList(Arrays.asList(new String[] {
458461
"com.fasterxml.jackson.annotation.JacksonInject",
@@ -467,10 +470,13 @@ public static int primeForNull() {
467470
"com.fasterxml.jackson.annotation.JsonUnwrapped",
468471
"com.fasterxml.jackson.annotation.JsonView",
469472
"com.fasterxml.jackson.databind.annotation.JsonDeserialize",
470-
"tools.jackson.databind.annotation.JsonDeserialize",
471473
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper",
472474
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty",
473475
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText",
476+
"tools.jackson.databind.annotation.JsonDeserialize",
477+
"tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper",
478+
"tools.jackson.dataformat.xml.annotation.JacksonXmlProperty",
479+
"tools.jackson.dataformat.xml.annotation.JacksonXmlText",
474480
}));
475481
JACKSON_COPY_TO_BUILDER_SINGULAR_SETTER_ANNOTATIONS = Collections.unmodifiableList(Arrays.asList(new String[] {
476482
"com.fasterxml.jackson.annotation.JsonAnySetter",

0 commit comments

Comments
 (0)