Skip to content

Commit

Permalink
Fix #258: add ElementType.PARAMETER for @JsonIgnore
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jul 21, 2024
1 parent 44c4a73 commit c93afbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ NOTE: Annotations module will never contain changes in patch versions,

2.18.0 (not yet released)

No changes since 2.17
#258: Add `ElementType.PARAMETER` to `@JsonIgnore` to allow use for Constructor
parameters

2.17.0 (12-Mar-2024)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
* defining one with 'false' argument: either in a subclass, or by
* using "mix-in annotations".
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD})
@Target({ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD,
ElementType.METHOD,
// note: added in 2.18 (as per [annotations#258])
ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotation
public @interface JsonIgnore
Expand Down

0 comments on commit c93afbb

Please sign in to comment.