Skip to content

Commit

Permalink
One more minor improvement to exception for #2977
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Dec 28, 2020
1 parent cb069f3 commit 8b0ca0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.fasterxml.jackson.databind.jsontype.TypeDeserializer;
import com.fasterxml.jackson.databind.type.LogicalType;
import com.fasterxml.jackson.databind.util.AccessPattern;
import com.fasterxml.jackson.databind.util.ClassUtil;

/**
* Container class for deserializers that handle core JDK primitive
Expand Down Expand Up @@ -174,7 +175,7 @@ public final T getNullValue(DeserializationContext ctxt) throws JsonMappingExcep
if (_primitive && ctxt.isEnabled(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES)) {
ctxt.reportInputMismatch(this,
"Cannot map `null` into type %s (set DeserializationConfig.DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES to 'false' to allow)",
handledType().toString());
ClassUtil.classNameOf(handledType()));
}
return _nullValue;
}
Expand Down

0 comments on commit 8b0ca0b

Please sign in to comment.