Skip to content

Commit

Permalink
Fix #242: allow @JsonAnySetter on parameters (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder authored Jan 28, 2024
1 parent e3f7e0d commit 34e250d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.2/apache-maven-3.9.2-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
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.17.0 (not yet released)

-
#242: Allow `@JsonAnySetter` on `ElementType.PARAMETER` (for use on
constructor parameters)

2.16.0 (15-Nov-2023)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
* If used, all otherwise unmapped key-value pairs from JSON Object values
* are added using mutator.
*<p>
* NOTE: ability to annotated fields was added in version 2.8; earlier only
* NOTE: ability to annotate fields was added in version 2.8; earlier only
* methods could be annotated.
*<p>
* NOTE: ability to annotate (constructor) parameters was added in version 2.17.
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD})
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotation
public @interface JsonAnySetter
Expand Down

0 comments on commit 34e250d

Please sign in to comment.