diff options
3 files changed, 0 insertions, 32 deletions
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java index c0c544566..9a78dc0b4 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java @@ -238,14 +238,6 @@ public abstract class BasicDeserializerFactory } } - // Sanity check: does the chosen ValueInstantiator have incomplete creators? - if (instantiator.getIncompleteParameter() != null) { - final AnnotatedParameter nonAnnotatedParam = instantiator.getIncompleteParameter(); - final AnnotatedWithParams ctor = nonAnnotatedParam.getOwner(); - throw new IllegalArgumentException("Argument #"+nonAnnotatedParam.getIndex() - +" of constructor "+ctor+" has no property name annotation; must have name when multiple-parameter constructor annotated as Creator"); - } - return instantiator; } diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java b/src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java index 303ba1d20..f413da549 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java @@ -4,7 +4,6 @@ import java.io.IOException; import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.deser.impl.PropertyValueBuffer; -import com.fasterxml.jackson.databind.introspect.AnnotatedParameter; import com.fasterxml.jackson.databind.introspect.AnnotatedWithParams; /** @@ -331,12 +330,6 @@ public abstract class ValueInstantiator */ public AnnotatedWithParams getWithArgsCreator() { return null; } - /** - * If an incomplete creator was found, this is the first parameter that - * needs further annotation to help make the creator complete. - */ - public AnnotatedParameter getIncompleteParameter() { return null; } - /* /********************************************************** /* Helper methods @@ -565,9 +558,5 @@ public abstract class ValueInstantiator @Override public AnnotatedWithParams getWithArgsCreator() { return delegate().getWithArgsCreator(); } - - @Override - public AnnotatedParameter getIncompleteParameter() { return delegate().getIncompleteParameter(); } - } } diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/std/StdValueInstantiator.java b/src/main/java/com/fasterxml/jackson/databind/deser/std/StdValueInstantiator.java index e4ac0fd6f..bc7be78b6 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/std/StdValueInstantiator.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/std/StdValueInstantiator.java @@ -6,7 +6,6 @@ import java.lang.reflect.InvocationTargetException; import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.annotation.JacksonStdImpl; import com.fasterxml.jackson.databind.deser.*; -import com.fasterxml.jackson.databind.introspect.AnnotatedParameter; import com.fasterxml.jackson.databind.introspect.AnnotatedWithParams; import com.fasterxml.jackson.databind.util.ClassUtil; @@ -66,9 +65,6 @@ public class StdValueInstantiator protected AnnotatedWithParams _fromDoubleCreator; protected AnnotatedWithParams _fromBooleanCreator; - // // // Incomplete creator - protected AnnotatedParameter _incompleteParameter; - /* /********************************************************** /* Life-cycle @@ -165,10 +161,6 @@ public class StdValueInstantiator _fromBooleanCreator = creator; } - public void configureIncompleteParameter(AnnotatedParameter parameter) { - _incompleteParameter = parameter; - } - /* /********************************************************** /* Public API implementation; metadata @@ -427,11 +419,6 @@ public class StdValueInstantiator return _withArgsCreator; } - @Override - public AnnotatedParameter getIncompleteParameter() { - return _incompleteParameter; - } - /* /********************************************************** /* Internal methods |