Skip to content

Commit

Permalink
Made constructor public to allow users their own objectMapper instance
Browse files Browse the repository at this point in the history
  • Loading branch information
kesrishubham2510 committed Oct 18, 2024
1 parent 2ad964a commit bd50122
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,7 @@ public JacksonDeserializer(ObjectMapper objectMapper) {
* @param claimTypeMap The claim name-to-class map used to deserialize claims into the given type
* @since 0.12.4
*/
//TODO: Make this public on a minor release
// (cannot do that on a point release as that would violate semver)
private JacksonDeserializer(ObjectMapper objectMapper, Map<String, Class<?>> claimTypeMap) {
public JacksonDeserializer(ObjectMapper objectMapper, Map<String, Class<?>> claimTypeMap) {
this(objectMapper);
Assert.notNull(claimTypeMap, "Claim type map cannot be null.");
// register a new Deserializer on the ObjectMapper instance:
Expand Down

0 comments on commit bd50122

Please sign in to comment.