Skip to content

Commit 4a006dd

Browse files
committed
...
1 parent 7b8ee83 commit 4a006dd

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

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

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -327,24 +327,12 @@ public AccessPattern getNullAccessPattern() {
327327
return AccessPattern.CONSTANT;
328328
}
329329

330-
/**
331-
* This method may be called in conjunction with calls to
332-
* {@link #getEmptyValue(DeserializationContext)}, to check whether it needs
333-
* to be called just once (static values), or each time empty value is
334-
* needed.
335-
*
336-
* @since 2.9
337-
*/
338-
public AccessPattern getEmptyAccessPattern() {
339-
return AccessPattern.DYNAMIC;
340-
}
341-
342330
/*
343331
/**********************************************************
344-
/* Other accessors
332+
/* Accessors for other replacement/placeholder values
345333
/**********************************************************
346334
*/
347-
335+
348336
/**
349337
* Method called to determine value to be used for "empty" values
350338
* (most commonly when deserializing from empty JSON Strings).
@@ -365,6 +353,24 @@ public Object getEmptyValue(DeserializationContext ctxt) throws JsonMappingExcep
365353
return getNullValue(ctxt);
366354
}
367355

356+
/**
357+
* This method may be called in conjunction with calls to
358+
* {@link #getEmptyValue(DeserializationContext)}, to check whether it needs
359+
* to be called just once (static values), or each time empty value is
360+
* needed.
361+
*
362+
* @since 2.9
363+
*/
364+
public AccessPattern getEmptyAccessPattern() {
365+
return AccessPattern.DYNAMIC;
366+
}
367+
368+
/*
369+
/**********************************************************
370+
/* Other accessors
371+
/**********************************************************
372+
*/
373+
368374
/**
369375
* Accessor that can be used to check whether this deserializer
370376
* is expecting to possibly get an Object Identifier value instead of full value

0 commit comments

Comments
 (0)