File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/main/java/com/fasterxml/jackson/databind/util Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 12
12
import com .fasterxml .jackson .core .io .NumberInput ;
13
13
14
14
/**
15
- * Default {@link DateFormat} implementation used by standard Date
16
- * serializers and deserializers. For serialization defaults to using
15
+ * Jackson's internal {@link DateFormat} implementation used by standard Date
16
+ * serializers and deserializers to implement default behavior: does <b>NOT</b>
17
+ * fully implement all aspects expected by {@link DateFormat} and as a consequence
18
+ * <b>SHOULD NOT</b> to be used by code outside core Jackson databind functionality.
19
+ * In particular, {@code ParsePosition} argument of {@link #parse(String, ParsePosition)}
20
+ * and {@link #format(Date, StringBuffer, FieldPosition)} methods is fully ignored;
21
+ * Jackson itself never calls these methods.
22
+ *<p>
23
+ * For serialization defaults to using
17
24
* an ISO-8601 compliant format (format String "yyyy-MM-dd'T'HH:mm:ss.SSSZ")
18
25
* and for deserialization, both ISO-8601 and RFC-1123.
19
26
*<br>
25
32
* Note that it is possible to enable/disable use of colon in time offset by using method
26
33
* {@link #withColonInTimeZone} for creating new differently configured format instance,
27
34
* and configuring {@code ObjectMapper} with it.
35
+ *<p>
36
+ * TODO: in Jackson 2.14 or later, should change behavior to fail if {@link ParsePosition}
37
+ * is specified by caller (at least with non-0 offset).
28
38
*/
29
39
@ SuppressWarnings ("serial" )
30
40
public class StdDateFormat
You can’t perform that action at this time.
0 commit comments