Class ObjectMapperFactory

java.lang.Object
com.atlassian.jira.util.ObjectMapperFactory

public final class ObjectMapperFactory extends Object
Factory for creating Jackson ObjectMapper instances.
Since:
10.3.5
  • 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