Made constructor public to allow users their own objectMapper instance (#972)

Co-authored-by: Les Hazlewood <121180+lhazlewood@users.noreply.github.com>
This commit is contained in:
shubham kesri
2025-08-16 01:31:39 +05:30
committed by GitHub
parent 03f088a4eb
commit b6f8cb82a9

View File

@@ -115,9 +115,7 @@ public class JacksonDeserializer<T> extends AbstractDeserializer<T> {
* @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: