Package com.atlassian.jira.util
Class ObjectMapperFactory
java.lang.Object
com.atlassian.jira.util.ObjectMapperFactory
Factory for creating Jackson
ObjectMapper
instances.- Since:
- 10.3.5
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapper
Creates an ObjectMapper with constraints to prevent potential issues such as stack overflow (VULN-1501853).
-
Method Details
-
getObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()Creates an ObjectMapper with constraints to prevent potential issues such as stack overflow (VULN-1501853). This class can be removed after upgrading Jackson to version 3.0 or later, as the default nesting limit will change from 1000 to 500 in that version.- Returns:
- an ObjectMapper instance
-