Skip to content

Commit 9ff9807

Browse files
committed
Javadoc improvement
1 parent 282ebe8 commit 9ff9807

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/main/java/com/fasterxml/jackson/databind/JsonDeserializer.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)