Skip to content

Commit 810128e

Browse files
committed
Add override for AtomicReferences handling of "absent" creator properties (to become nulls)
1 parent 14569fe commit 810128e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ public Object getEmptyValue(DeserializationContext ctxt) throws JsonMappingExcep
5252
return getNullValue(ctxt);
5353
}
5454

55+
/**
56+
* Let's actually NOT coerce missing Creator parameters into empty value.
57+
*/
58+
@Override // @since 2.13
59+
public Object getAbsentValue(DeserializationContext ctxt) throws JsonMappingException {
60+
return null;
61+
}
62+
5563
@Override
5664
public AtomicReference<Object> referenceValue(Object contents) {
5765
return new AtomicReference<Object>(contents);

0 commit comments

Comments
 (0)