@@ -280,9 +280,8 @@ public Collection<Object> getKnownPropertyNames() {
280280 * Java null, but for some types (especially primitives) it may be
281281 * necessary to use non-null values.
282282 *<p>
283- * Since version 2.6 (in which the context argument was added), call is
284- * expected to be made each and every time a null token needs to
285- * be handled.
283+ * This method may be called once, or multiple times, depending on what
284+ * {@link #getNullAccessPattern()} returns.
286285 *<p>
287286 * Default implementation simply returns null.
288287 *
@@ -295,6 +294,11 @@ public T getNullValue(DeserializationContext ctxt) throws JsonMappingException {
295294 }
296295
297296 /**
297+ * This method may be called in conjunction with calls to
298+ * {@link #getNullValue(DeserializationContext)}, to check whether it needs
299+ * to be called just once (static values), or each time empty value is
300+ * needed.
301+ *<p>
298302 * Default implementation indicates that "null value" to use for input null
299303 * is simply Java `null` for all deserializers, unless overridden by sub-classes.
300304 * This information may be used as optimization.
@@ -330,13 +334,11 @@ public AccessPattern getEmptyAccessPattern() {
330334 * (most commonly when deserializing from empty JSON Strings).
331335 * Usually this is same as {@link #getNullValue} (which in turn
332336 * is usually simply Java null), but it can be overridden
333- * for types. Or, if type should never be converted from empty
337+ * for specific types. Or, if type should never be converted from empty
334338 * String, method can also throw an exception.
335339 *<p>
336- * Since version 2.6 (in which the context argument was added), call is
337- * expected to be made each and every time an empty value is needed.
338- *<p>
339- * Since version 2.9 does not require return of `T` any more.
340+ * This method may be called once, or multiple times, depending on what
341+ * {@link #getEmptyAccessPattern()} returns.
340342 *<p>
341343 * Default implementation simply calls {@link #getNullValue} and
342344 * returns value.
0 commit comments