Skip to content

Commit bebb935

Browse files
committed
Fix prob wrt 3.0 change to ValueInstantiator impl
1 parent c7c40d9 commit bebb935

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ public SettableBeanProperty[] getFromObjectArguments(DeserializationConfig confi
163163
* non-null type is returned, deserializer will bind JSON into specified
164164
* type (using standard deserializer for that type), and pass that to
165165
* instantiator.
166-
*
167-
* @since 2.7
168166
*/
169167
public JavaType getArrayDelegateType(DeserializationConfig config) { return null; }
170168

@@ -407,7 +405,7 @@ public Base(Class<?> type) {
407405
public Base(JavaType type) {
408406
_valueType = type.getRawClass();
409407
}
410-
408+
411409
@Override
412410
public String getValueTypeDesc() {
413411
return _valueType.getName();

src/main/java/com/fasterxml/jackson/databind/util/ConstantValueInstantiator.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
* Trivial {@link ValueInstantiator} implementation that will simply return constant
1010
* {@code Object} it is configured with. May be used as-is, or as base class to override
1111
* simplistic behavior further.
12-
*
13-
* @since 2.9.4
1412
*/
1513
public class ConstantValueInstantiator extends ValueInstantiator
1614
{
@@ -35,4 +33,9 @@ public Class<?> getValueClass() {
3533
public Object createUsingDefault(DeserializationContext ctxt) throws IOException {
3634
return _value;
3735
}
36+
37+
@Override
38+
public String getValueTypeDesc() {
39+
return _value.getClass().getName();
40+
}
3841
}

0 commit comments

Comments
 (0)