# Deprecated API

## Contents

- Classes
- Fields
- Methods
- Constructors
- Enum Constants

Deprecated Classes
Class
Description
com.fasterxml.jackson.core.util.BufferRecyclers
Since 2.16 recycling aspects are handled via `RecyclerPool`.

Deprecated Fields
Field
Description
com.fasterxml.jackson.core.base.ParserMinimalBase.MAX_ERROR_TOKEN_LENGTH
Since 2.16. `ErrorReportConfiguration.getMaxErrorTokenLength()` will be used instead.
com.fasterxml.jackson.core.io.ContentReference.DEFAULT_MAX_CONTENT_SNIPPET
Since 2.16. `ErrorReportConfiguration.DEFAULT_MAX_RAW_CONTENT_LENGTH` will be used instead.
com.fasterxml.jackson.core.io.IOContext._sourceRef
Since 2.13, use `IOContext._contentReference` instead
com.fasterxml.jackson.core.io.NumberInput.NASTY_SMALL_DOUBLE
Since 2.14 -- do not use
com.fasterxml.jackson.core.JsonLocation.MAX_CONTENT_SNIPPET
Since 2.13 use `ErrorReportConfiguration.DEFAULT_MAX_RAW_CONTENT_LENGTH` instead
com.fasterxml.jackson.core.util.DefaultPrettyPrinter._spacesInObjectEntries
in 2.16. Use Separators API instead.
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.DEFAULT_ROOT_VALUE_SEPARATOR
in 2.16. Use the Separators API instead.

Deprecated Methods
Method
Description
com.fasterxml.jackson.core.base.GeneratorBase.setFeatureMask(int)
com.fasterxml.jackson.core.base.ParserBase._getSourceReference()
Since 2.13, use `_contentReference()` instead.
com.fasterxml.jackson.core.base.ParserBase.loadMore()
com.fasterxml.jackson.core.base.ParserBase.loadMoreGuaranteed()
com.fasterxml.jackson.core.base.ParserBase.setFeatureMask(int)
com.fasterxml.jackson.core.base.ParserMinimalBase._ascii(byte[])
com.fasterxml.jackson.core.base.ParserMinimalBase._asciiBytes(String)
com.fasterxml.jackson.core.base.ParserMinimalBase._reportInvalidEOF(String)
Since 2.8 use `ParserMinimalBase._reportInvalidEOF(String, JsonToken)` instead
com.fasterxml.jackson.core.base.ParserMinimalBase._reportInvalidEOFInValue()
Since 2.8 use `ParserMinimalBase._reportInvalidEOF(String, JsonToken)` instead
com.fasterxml.jackson.core.base.ParserMinimalBase.getCurrentTokenId()
com.fasterxml.jackson.core.base.ParserMinimalBase.reportUnexpectedNumberChar(int, String)
com.fasterxml.jackson.core.filter.FilteringParserDelegate.getCurrentTokenId()
com.fasterxml.jackson.core.io.CharTypes.copyHexBytes()
Since 2.14 Use `CharTypes.copyHexBytes(boolean)` instead
com.fasterxml.jackson.core.io.CharTypes.copyHexChars()
Since 2.14 Use `CharTypes.copyHexChars(boolean)` instead
com.fasterxml.jackson.core.io.ContentReference.construct(boolean, Object)
Since 2.16. Use `ContentReference.construct(boolean, Object, ErrorReportConfiguration)` instead.
com.fasterxml.jackson.core.io.ContentReference.construct(boolean, Object, int, int)
Since 2.16. Use `ContentReference.construct(boolean, Object, int, int, ErrorReportConfiguration)` instead.
com.fasterxml.jackson.core.io.IOContext.getSourceReference()
Since 2.13, use `IOContext.contentReference()` instead
com.fasterxml.jackson.core.json.JsonReadContext.getStartLocation(Object)
com.fasterxml.jackson.core.json.JsonWriteContext.createRootContext()
Since 2.3; use method that takes argument
com.fasterxml.jackson.core.json.ReaderBasedJsonParser._parseFloatThatStartsWithPeriod()
com.fasterxml.jackson.core.json.ReaderBasedJsonParser.getNextChar(String)
com.fasterxml.jackson.core.json.UTF8DataInputJsonParser._parseFloatThatStartsWithPeriod()
com.fasterxml.jackson.core.json.UTF8StreamJsonParser._parseFloatThatStartsWithPeriod()
com.fasterxml.jackson.core.JsonFactory._createContext(Object, boolean)
Since 2.13
com.fasterxml.jackson.core.JsonFactory.configure(JsonFactory.Feature, boolean)
since 2.10 use `TSFBuilder.configure(JsonFactory.Feature, boolean)` instead
com.fasterxml.jackson.core.JsonFactory.createJsonGenerator(OutputStream)
Since 2.2, use `JsonFactory.createGenerator(OutputStream)` instead.
com.fasterxml.jackson.core.JsonFactory.createJsonGenerator(OutputStream, JsonEncoding)
Since 2.2, use `JsonFactory.createGenerator(OutputStream, JsonEncoding)` instead.
com.fasterxml.jackson.core.JsonFactory.createJsonGenerator(Writer)
Since 2.2, use `JsonFactory.createGenerator(Writer)` instead.
com.fasterxml.jackson.core.JsonFactory.createJsonParser(byte[])
Since 2.2, use `JsonFactory.createParser(byte[])` instead.
com.fasterxml.jackson.core.JsonFactory.createJsonParser(byte[], int, int)
Since 2.2, use `JsonFactory.createParser(byte[],int,int)` instead.
com.fasterxml.jackson.core.JsonFactory.createJsonParser(File)
Since 2.2, use `JsonFactory.createParser(File)` instead.
com.fasterxml.jackson.core.JsonFactory.createJsonParser(InputStream)
Since 2.2, use `JsonFactory.createParser(InputStream)` instead.
com.fasterxml.jackson.core.JsonFactory.createJsonParser(Reader)
Since 2.2, use `JsonFactory.createParser(Reader)` instead.
com.fasterxml.jackson.core.JsonFactory.createJsonParser(String)
Since 2.2, use `JsonFactory.createParser(String)` instead.
com.fasterxml.jackson.core.JsonFactory.createJsonParser(URL)
Since 2.2, use `JsonFactory.createParser(URL)` instead.
com.fasterxml.jackson.core.JsonFactory.disable(JsonFactory.Feature)
since 2.10 use `TSFBuilder.configure(JsonFactory.Feature, boolean)` instead
com.fasterxml.jackson.core.JsonFactory.enable(JsonFactory.Feature)
since 2.10 use `TSFBuilder.configure(JsonFactory.Feature, boolean)` instead
com.fasterxml.jackson.core.JsonFactory.setInputDecorator(InputDecorator)
Since 2.10 use `TSFBuilder.inputDecorator(InputDecorator)` instead
com.fasterxml.jackson.core.JsonFactory.setOutputDecorator(OutputDecorator)
Since 2.10 use `TSFBuilder.outputDecorator(OutputDecorator)` instead
com.fasterxml.jackson.core.JsonGenerator.setFeatureMask(int)
Since 2.7, use `JsonGenerator.overrideStdFeatures(int, int)` instead -- remove from 2.9
com.fasterxml.jackson.core.JsonGenerator.writeStartArray(int)
Since 2.12 Use `JsonGenerator.writeStartArray(Object, int)` instead
com.fasterxml.jackson.core.JsonLocation.getSourceRef()
Since 2.13 Use `JsonLocation.contentReference()` instead
com.fasterxml.jackson.core.JsonParser.getCurrentTokenId()
Since 2.12 use `JsonParser.currentTokenId()` instead
com.fasterxml.jackson.core.JsonParser.setFeatureMask(int)
Since 2.7, use `JsonParser.overrideStdFeatures(int, int)` instead
com.fasterxml.jackson.core.JsonStreamContext.getStartLocation(Object)
Since 2.13 use `JsonStreamContext.startLocation(com.fasterxml.jackson.core.io.ContentReference)` instead
com.fasterxml.jackson.core.JsonStreamContext.getTypeDesc()
Since 2.8 use `JsonStreamContext.typeDesc()` instead
com.fasterxml.jackson.core.ObjectCodec.getJsonFactory()
Use `ObjectCodec.getFactory()` instead.
com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.createRoot()
Since 2.16 use `CharsToNameCanonicalizer.createRoot(TokenStreamFactory)` instead
com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.createRoot(int)
Since 2.16 use `CharsToNameCanonicalizer.createRoot(TokenStreamFactory)` instead
com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer.makeChild(int)
Since 2.16 use `CharsToNameCanonicalizer.makeChild()` instead.
com.fasterxml.jackson.core.type.ResolvedType.getParameterSource()
Since 2.7: does not have meaning as parameters depend on type resolved.
com.fasterxml.jackson.core.util.BufferRecyclers.encodeAsUTF8(String)
Since 2.10 call `JsonStringEncoder.getInstance()` and then `encodeAsUTF8()`) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)
com.fasterxml.jackson.core.util.BufferRecyclers.getBufferRecycler()
Since 2.16 should use `RecyclerPool` abstraction instead of calling static methods of this class
com.fasterxml.jackson.core.util.BufferRecyclers.getJsonStringEncoder()
Since 2.10 call `JsonStringEncoder.getInstance()` instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)
com.fasterxml.jackson.core.util.BufferRecyclers.quoteAsJsonText(CharSequence, StringBuilder)
Since 2.10 call `JsonStringEncoder.getInstance()` and then `quoteAsString()`) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)
com.fasterxml.jackson.core.util.BufferRecyclers.quoteAsJsonText(String)
Since 2.10 call `JsonStringEncoder.getInstance()` and then `quoteAsString()`) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)
com.fasterxml.jackson.core.util.BufferRecyclers.quoteAsJsonUTF8(String)
Since 2.10 call `JsonStringEncoder.getInstance()` (and then `quoteAsUTF8()`) instead. NOTE: was accidentally removed but reintroduced as deprecated in 2.12.5, to be removed from 3.0)
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.withoutSpacesInObjectEntries()
in 2.16. Use the Separators API instead.
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.withRootSeparator(SerializableString)
in 2.16. Use the Separators API instead.
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.withRootSeparator(String)
in 2.16. Use the Separators API instead.
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.withSpacesInObjectEntries()
in 2.16. Use the Separators API instead.
com.fasterxml.jackson.core.util.JsonGeneratorDelegate.getDelegate()
com.fasterxml.jackson.core.util.JsonGeneratorDelegate.setFeatureMask(int)
com.fasterxml.jackson.core.util.JsonParserDelegate.getCurrentTokenId()
com.fasterxml.jackson.core.util.JsonParserDelegate.setFeatureMask(int)
com.fasterxml.jackson.core.util.JsonParserSequence.createFlattened(JsonParser, JsonParser)
com.fasterxml.jackson.core.util.TextBuffer.contentsAsDecimal()
Since 2.15 just access String contents if necessary, call `NumberInput.parseBigDecimal(String, boolean)` (or other overloads) directly instead
com.fasterxml.jackson.core.util.TextBuffer.contentsAsDouble()
use `TextBuffer.contentsAsDouble(boolean)`
com.fasterxml.jackson.core.util.TextBuffer.contentsAsFloat()
use `TextBuffer.contentsAsFloat(boolean)`
com.fasterxml.jackson.core.util.VersionUtil.mavenVersionFor(ClassLoader, String, String)
Since 2.6: functionality not used by any official Jackson component, should be moved out if anyone needs it
com.fasterxml.jackson.core.util.VersionUtil.packageVersionFor(Class<?>)
Since 2.12 simply use `VersionUtil.versionFor(Class)` instead
com.fasterxml.jackson.core.util.VersionUtil.version()
com.fasterxml.jackson.core.Version.isUknownVersion()
Since 2.7 use correctly spelled method `Version.isUnknownVersion()`

Deprecated Constructors
Constructor
Description
com.fasterxml.jackson.core.base.GeneratorBase(int, ObjectCodec)
com.fasterxml.jackson.core.base.GeneratorBase(int, ObjectCodec, JsonWriteContext)
com.fasterxml.jackson.core.filter.FilteringGeneratorDelegate(JsonGenerator, TokenFilter, boolean, boolean)
since 2.12 Use the constructor that takes `TokenFilter.Inclusion` argument instead.
com.fasterxml.jackson.core.filter.FilteringParserDelegate(JsonParser, TokenFilter, boolean, boolean)
com.fasterxml.jackson.core.io.ContentReference(boolean, Object)
Since 2.16. Use `ContentReference(boolean, Object, ErrorReportConfiguration)` instead.
com.fasterxml.jackson.core.io.ContentReference(boolean, Object, int, int)
Since 2.16. Use `ContentReference(boolean, Object, int, int, ErrorReportConfiguration)` instead.
com.fasterxml.jackson.core.io.IOContext(StreamReadConstraints, BufferRecycler, ContentReference, boolean)
Since 2.16. Use `IOContext(StreamReadConstraints, StreamWriteConstraints, ErrorReportConfiguration, BufferRecycler, ContentReference, boolean)` instead.
com.fasterxml.jackson.core.io.IOContext(BufferRecycler, ContentReference, boolean)
Since 2.15. Use `IOContext(StreamReadConstraints, StreamWriteConstraints, ErrorReportConfiguration, BufferRecycler, ContentReference, boolean)` instead.
com.fasterxml.jackson.core.io.IOContext(BufferRecycler, Object, boolean)
com.fasterxml.jackson.core.json.JsonReadContext(JsonReadContext, DupDetector, int, int, int)
com.fasterxml.jackson.core.json.UTF8JsonGenerator(IOContext, int, ObjectCodec, OutputStream)
com.fasterxml.jackson.core.json.UTF8JsonGenerator(IOContext, int, ObjectCodec, OutputStream, byte[], int, boolean)
com.fasterxml.jackson.core.json.UTF8StreamJsonParser(IOContext, int, InputStream, ObjectCodec, ByteQuadsCanonicalizer, byte[], int, int, boolean)
Since 2.10
com.fasterxml.jackson.core.json.WriterBasedJsonGenerator(IOContext, int, ObjectCodec, Writer)
com.fasterxml.jackson.core.JsonGenerationException(String)
com.fasterxml.jackson.core.JsonGenerationException(String, Throwable)
com.fasterxml.jackson.core.JsonGenerationException(Throwable)
com.fasterxml.jackson.core.JsonLocation(Object, long, int, int)
com.fasterxml.jackson.core.JsonLocation(Object, long, long, int, int)
com.fasterxml.jackson.core.JsonParseException(String, JsonLocation)
com.fasterxml.jackson.core.JsonParseException(String, JsonLocation, Throwable)
com.fasterxml.jackson.core.StreamReadConstraints(int, long, int, int)
com.fasterxml.jackson.core.util.DefaultPrettyPrinter(SerializableString)
in 2.16. Use the Separators API instead.
com.fasterxml.jackson.core.util.DefaultPrettyPrinter(DefaultPrettyPrinter, SerializableString)
in 2.16. Use the Separators API instead.
com.fasterxml.jackson.core.util.DefaultPrettyPrinter(String)
in 2.16. Use the Separators API instead.
com.fasterxml.jackson.core.util.JsonParserSequence(JsonParser[])
com.fasterxml.jackson.core.Version(int, int, int, String)
Use variant that takes group and artifact ids

Deprecated Enum Constants
Enum Constant
Description
com.fasterxml.jackson.core.JsonGenerator.Feature.ESCAPE_NON_ASCII
Since 2.10 use `JsonWriteFeature.ESCAPE_NON_ASCII` instead
com.fasterxml.jackson.core.JsonGenerator.Feature.QUOTE_FIELD_NAMES
Since 2.10 use `JsonWriteFeature.QUOTE_FIELD_NAMES` instead
com.fasterxml.jackson.core.JsonGenerator.Feature.QUOTE_NON_NUMERIC_NUMBERS
Since 2.10 use `JsonWriteFeature.WRITE_NAN_AS_STRINGS` instead
com.fasterxml.jackson.core.JsonGenerator.Feature.USE_FAST_DOUBLE_WRITER
Use `StreamWriteFeature.USE_FAST_DOUBLE_WRITER` instead
com.fasterxml.jackson.core.JsonGenerator.Feature.WRITE_HEX_UPPER_CASE
Use `JsonWriteFeature.WRITE_HEX_UPPER_CASE` instead
com.fasterxml.jackson.core.JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS
Since 2.10 use `JsonWriteFeature.WRITE_NUMBERS_AS_STRINGS` instead
com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER
Since 2.10 use `JsonReadFeature.ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER` instead
com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_LEADING_DECIMAL_POINT_FOR_NUMBERS
Use `JsonReadFeature.ALLOW_LEADING_DECIMAL_POINT_FOR_NUMBERS` instead
com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_LEADING_PLUS_SIGN_FOR_NUMBERS
Use `JsonReadFeature.ALLOW_LEADING_PLUS_SIGN_FOR_NUMBERS` instead
com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_MISSING_VALUES
Since 2.10 use `JsonReadFeature.ALLOW_MISSING_VALUES` instead
com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_NON_NUMERIC_NUMBERS
Since 2.10 use `JsonReadFeature.ALLOW_NON_NUMERIC_NUMBERS` instead
com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_NUMERIC_LEADING_ZEROS
Since 2.10 use `JsonReadFeature.ALLOW_LEADING_ZEROS_FOR_NUMBERS` instead
com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_TRAILING_COMMA
Since 2.10 use `JsonReadFeature.ALLOW_TRAILING_COMMA` instead
com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_TRAILING_DECIMAL_POINT_FOR_NUMBERS
Use `JsonReadFeature.ALLOW_TRAILING_DECIMAL_POINT_FOR_NUMBERS` instead
com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS
Since 2.10 use `JsonReadFeature.ALLOW_UNESCAPED_CONTROL_CHARS` instead