Skip to content

Commit

Permalink
Fix #434
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Nov 13, 2020
1 parent f4cbedd commit ed86050
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Project: jackson-dataformat-xml
from `true` to `false`
#412: Coercion from element-with-attribute-and-text only works for `String`,
not other scalar types
#434: Add missing `ElementType.ANNOTATION_TYPE` for Jackson xml annotations
to allow bundling
- Add Gradle Module Metadata (https://blog.gradle.org/alignment-with-gradle-module-metadata)
- Upgrade Woodstox dependency to 6.2.3 (<- 6.2.1)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Adding this annotation will result in value of the property to be serialized
* within an xml {@code CDATA} section. Only use on String properties and String collections.
*/
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
public @interface JacksonXmlCData
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* <code>java.util.Collection</code>). If defined, a separate container (wrapper) element
* is used; if not, entries are written without wrapping.
*/
@Target({ElementType.FIELD, ElementType.METHOD})
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface JacksonXmlElementWrapper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* while compiler allows that, will have no effect) -- setter method itself
* needs to be annotated.
*/
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface JacksonXmlProperty
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* values and so on; their name is derived from getter/setter/field, not
* from type itself.
*/
@Target({ElementType.TYPE})
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface JacksonXmlRootElement
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Internally properties annotated will be considered to be properties with
* no name (that is, with marker {@code ""} (empty String)).
*/
@Target({ElementType.FIELD, ElementType.METHOD})
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface JacksonXmlText
{
Expand Down

0 comments on commit ed86050

Please sign in to comment.