10
10
*/
11
11
public enum DateTimeFeature implements DatatypeFeature
12
12
{
13
- /**
14
- * Feature that determines whether {@link java.time.ZoneId} is normalized
15
- * (via call to {@code java.time.ZoneId#normalized()}) when deserializing
16
- * types like {@link java.time.ZonedDateTime}.
17
- *<p>
18
- * Default setting is enabled, for backwards-compatibility with
19
- * Jackson 2.15.
20
- */
21
- NORMALIZE_DESERIALIZED_ZONE_ID (true ),
22
-
23
- /**
24
- * Feature that determines whether the {@link java.util.TimeZone} of the
25
- * {@link tools.jackson.databind.DeserializationContext} is used
26
- * when leniently deserializing {@link java.time.LocalDate} or
27
- * {@link java.time.LocalDateTime} from the UTC/ISO instant format.
28
- * <p>
29
- * Default setting is disabled, for backwards-compatibility with
30
- * Jackson 2.18.
31
- *
32
- * @since 2.19
33
- */
34
- USE_TIME_ZONE_FOR_LENIENT_DATE_PARSING (false ),
35
-
36
13
/**
37
14
* Feature that controls whether stringified numbers (Strings that without
38
15
* quotes would be legal JSON Numbers) may be interpreted as
@@ -46,14 +23,36 @@ public enum DateTimeFeature implements DatatypeFeature
46
23
*/
47
24
ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS (false ),
48
25
26
+ /**
27
+ * Feature that determines whether {@link java.time.ZoneId} is normalized
28
+ * (via call to {@code java.time.ZoneId#normalized()}) when deserializing
29
+ * types like {@link java.time.ZonedDateTime}.
30
+ *<p>
31
+ * Default setting is enabled, for backwards-compatibility with
32
+ * Jackson 2.15.
33
+ */
34
+ NORMALIZE_DESERIALIZED_ZONE_ID (true ),
35
+
49
36
/**
50
37
* Feature that determines whether {@link java.time.Month} is serialized
51
38
* and deserialized as using a zero-based index (FALSE) or a one-based index (TRUE).
52
39
* For example, "1" would be serialized/deserialized as Month.JANUARY if TRUE and Month.FEBRUARY if FALSE.
53
40
*<p>
54
41
* Default setting is false, meaning that Month is serialized/deserialized as a zero-based index.
55
42
*/
56
- ONE_BASED_MONTHS (false )
43
+ ONE_BASED_MONTHS (false ),
44
+
45
+ /**
46
+ * Feature that determines whether the {@link java.util.TimeZone} of the
47
+ * {@link tools.jackson.databind.DeserializationContext} is used
48
+ * when leniently deserializing {@link java.time.LocalDate} or
49
+ * {@link java.time.LocalDateTime} from the UTC/ISO instant format.
50
+ * <p>
51
+ * Default setting is disabled, for backwards-compatibility with
52
+ * Jackson 2.18.
53
+ */
54
+ USE_TIME_ZONE_FOR_LENIENT_DATE_PARSING (false )
55
+
57
56
;
58
57
59
58
private final static int FEATURE_INDEX = DatatypeFeatures .FEATURE_INDEX_DATETIME ;
0 commit comments