Skip to content

Commit a7ea15d

Browse files
committed
fix msg 5469
1 parent 0f7137e commit a7ea15d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/tools/jackson/databind/DeserializationContext.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,13 +1384,11 @@ public Object handleNullForPrimitives(Class<?> targetClass,
13841384
if (_isCompatible(targetClass, instance)) {
13851385
return instance;
13861386
}
1387-
return reportInputMismatch(deser,
1388-
"Cannot map `null` into type %s (set DeserializationConfig.DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES to 'false' to allow)");
1387+
return reportInputMismatch(deser, msg);
13891388
}
13901389
h = h.next();
13911390
}
1392-
return reportInputMismatch(deser,
1393-
"Cannot map `null` into type %s (set DeserializationConfig.DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES to 'false' to allow)");
1391+
return reportInputMismatch(deser, msg);
13941392
}
13951393

13961394
/**

0 commit comments

Comments
 (0)