From 8bdbfb90ebd7644161841c6733f12bbbdfcea27e Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Fri, 31 Jul 2020 21:32:06 -0700 Subject: Remove a deprecated internal method --- .../jackson/databind/deser/impl/BeanPropertyMap.java | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/impl/BeanPropertyMap.java b/src/main/java/com/fasterxml/jackson/databind/deser/impl/BeanPropertyMap.java index 406fa9bd6..7bb6c95cd 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/impl/BeanPropertyMap.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/impl/BeanPropertyMap.java @@ -6,6 +6,7 @@ import java.util.*; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; + import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.JsonDeserializer; @@ -417,20 +418,6 @@ public class BeanPropertyMap return new BeanPropertyMap(_caseInsensitive, newProps, _aliasDefs, _locale); } - @Deprecated // in 2.9.4 -- must call method that takes old and new property to avoid mismatch - public void replace(SettableBeanProperty newProp) - { - String key = getPropertyName(newProp); - int ix = _findIndexInHash(key); - if (ix < 0) { - throw new NoSuchElementException("No entry '"+key+"' found, can't replace"); - } - SettableBeanProperty prop = (SettableBeanProperty) _hashArea[ix]; - _hashArea[ix] = newProp; - // also, replace in in-order - _propsInOrder[_findFromOrdered(prop)] = newProp; - } - /** * Specialized method that can be used to replace an existing entry * (note: entry MUST exist; otherwise exception is thrown) with @@ -775,6 +762,7 @@ public class BeanPropertyMap * * @since 2.7 */ + /* private final int _findIndexInHash(String key) { final int slot = _hashCode(key); @@ -799,6 +787,7 @@ public class BeanPropertyMap } return -1; } + */ private final int _findFromOrdered(SettableBeanProperty prop) { for (int i = 0, end = _propsInOrder.length; i < end; ++i) { -- cgit v1.2.3