Skip to content

Commit 3951b23

Browse files
dominikrebhanDominik
andauthored
Ability to use JsonAnyGetter on fields (#177)
Co-authored-by: Dominik <dominik@home>
1 parent 2166128 commit 3951b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/fasterxml/jackson/annotation/JsonAnyGetter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* with this annotation; if multiple methods are annotated, an exception
2020
* may be thrown.
2121
*/
22-
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD})
22+
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD})
2323
@Retention(RetentionPolicy.RUNTIME)
2424
@JacksonAnnotation
2525
public @interface JsonAnyGetter

0 commit comments

Comments
 (0)