diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDeserializer.java b/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDeserializer.java index b173155644..edef7858a0 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDeserializer.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/std/StdDeserializer.java @@ -1204,15 +1204,6 @@ protected String _coercedTypeDesc() { // Removed from 3.0 - @Deprecated // since 2.12 - protected Object _coerceNullToken(DeserializationContext ctxt, boolean isPrimitive) throws JsonMappingException - { - if (isPrimitive) { - _verifyNullForPrimitive(ctxt); - } - return getNullValue(ctxt); - } - /* /********************************************************************** /* Helper methods for sub-classes, resolving dependencies diff --git a/src/test/java/com/fasterxml/jackson/databind/convert/CoerceEmptyArrayTest.java b/src/test/java/com/fasterxml/jackson/databind/convert/CoerceEmptyArrayTest.java index 6c9cf766ee..d2c8c46142 100644 --- a/src/test/java/com/fasterxml/jackson/databind/convert/CoerceEmptyArrayTest.java +++ b/src/test/java/com/fasterxml/jackson/databind/convert/CoerceEmptyArrayTest.java @@ -131,7 +131,7 @@ public void testMapFromEmptyArray() throws Exception public void testEnumMapFromEmptyArray() throws Exception { - final JavaType targetType = DEFAULT_READER.getTypeFactory() + final JavaType targetType = DEFAULT_READER.typeFactory() .constructType(new TypeReference>() { }); assertNull(MAPPER_TO_NULL.readerFor(targetType).readValue(EMPTY_ARRAY));