@@ -280,9 +280,8 @@ public Collection<Object> getKnownPropertyNames() {
280
280
* Java null, but for some types (especially primitives) it may be
281
281
* necessary to use non-null values.
282
282
*<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.
286
285
*<p>
287
286
* Default implementation simply returns null.
288
287
*
@@ -295,6 +294,11 @@ public T getNullValue(DeserializationContext ctxt) throws JsonMappingException {
295
294
}
296
295
297
296
/**
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>
298
302
* Default implementation indicates that "null value" to use for input null
299
303
* is simply Java `null` for all deserializers, unless overridden by sub-classes.
300
304
* This information may be used as optimization.
@@ -330,13 +334,11 @@ public AccessPattern getEmptyAccessPattern() {
330
334
* (most commonly when deserializing from empty JSON Strings).
331
335
* Usually this is same as {@link #getNullValue} (which in turn
332
336
* 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
334
338
* String, method can also throw an exception.
335
339
*<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.
340
342
*<p>
341
343
* Default implementation simply calls {@link #getNullValue} and
342
344
* returns value.
0 commit comments