From bd501223b2ab5844722042bf4f1417ae454b927b Mon Sep 17 00:00:00 2001 From: kesrishubham2510 Date: Fri, 18 Oct 2024 20:20:28 +0530 Subject: [PATCH] Made constructor public to allow users their own objectMapper instance --- .../java/io/jsonwebtoken/jackson/io/JacksonDeserializer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extensions/jackson/src/main/java/io/jsonwebtoken/jackson/io/JacksonDeserializer.java b/extensions/jackson/src/main/java/io/jsonwebtoken/jackson/io/JacksonDeserializer.java index afb152918..63cc37618 100644 --- a/extensions/jackson/src/main/java/io/jsonwebtoken/jackson/io/JacksonDeserializer.java +++ b/extensions/jackson/src/main/java/io/jsonwebtoken/jackson/io/JacksonDeserializer.java @@ -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> claimTypeMap) { + public JacksonDeserializer(ObjectMapper objectMapper, Map> claimTypeMap) { this(objectMapper); Assert.notNull(claimTypeMap, "Claim type map cannot be null."); // register a new Deserializer on the ObjectMapper instance: