mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 09:13:36 +00:00
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.
This commit is contained in:
1 parent
184d42363d
commit
45e72e241a
1 file changed
+7
-1
@@ -453,6 +453,9 @@ public class HandlerUtil {
|
||||
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper",
|
||||
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty",
|
||||
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText",
|
||||
"tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper",
|
||||
"tools.jackson.dataformat.xml.annotation.JacksonXmlProperty",
|
||||
"tools.jackson.dataformat.xml.annotation.JacksonXmlText",
|
||||
}));
|
||||
JACKSON_COPY_TO_SETTER_ANNOTATIONS = Collections.unmodifiableList(Arrays.asList(new String[] {
|
||||
"com.fasterxml.jackson.annotation.JacksonInject",
|
||||
@@ -467,10 +470,13 @@ public class HandlerUtil {
|
||||
"com.fasterxml.jackson.annotation.JsonUnwrapped",
|
||||
"com.fasterxml.jackson.annotation.JsonView",
|
||||
"com.fasterxml.jackson.databind.annotation.JsonDeserialize",
|
||||
"tools.jackson.databind.annotation.JsonDeserialize",
|
||||
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper",
|
||||
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty",
|
||||
"com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText",
|
||||
"tools.jackson.databind.annotation.JsonDeserialize",
|
||||
"tools.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper",
|
||||
"tools.jackson.dataformat.xml.annotation.JacksonXmlProperty",
|
||||
"tools.jackson.dataformat.xml.annotation.JacksonXmlText",
|
||||
}));
|
||||
JACKSON_COPY_TO_BUILDER_SINGULAR_SETTER_ANNOTATIONS = Collections.unmodifiableList(Arrays.asList(new String[] {
|
||||
"com.fasterxml.jackson.annotation.JsonAnySetter",
|
||||
|
||||
Reference in new issue
Block a user