Skip to content

Commit 0b0756f

Browse files
committed
Reorder DateTimeFeatures alphabetically
1 parent 0da08a7 commit 0b0756f

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed

src/main/java/tools/jackson/databind/cfg/DateTimeFeature.java

+23-24
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,6 @@
1010
*/
1111
public enum DateTimeFeature implements DatatypeFeature
1212
{
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-
3613
/**
3714
* Feature that controls whether stringified numbers (Strings that without
3815
* quotes would be legal JSON Numbers) may be interpreted as
@@ -46,14 +23,36 @@ public enum DateTimeFeature implements DatatypeFeature
4623
*/
4724
ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS(false),
4825

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+
4936
/**
5037
* Feature that determines whether {@link java.time.Month} is serialized
5138
* and deserialized as using a zero-based index (FALSE) or a one-based index (TRUE).
5239
* For example, "1" would be serialized/deserialized as Month.JANUARY if TRUE and Month.FEBRUARY if FALSE.
5340
*<p>
5441
* Default setting is false, meaning that Month is serialized/deserialized as a zero-based index.
5542
*/
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+
5756
;
5857

5958
private final static int FEATURE_INDEX = DatatypeFeatures.FEATURE_INDEX_DATETIME;

0 commit comments

Comments
 (0)