Skip to content

Commit

Permalink
Add documentation for TomlReadFeature#PARSE_JAVA_TIME
Browse files Browse the repository at this point in the history
  • Loading branch information
yawkat committed Apr 10, 2021
1 parent b6d626d commit 776690f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
*/
public enum TomlReadFeature
implements FormatFeature {
/**
* TOML has special syntax for time types corresponding to {@link java.time.LocalDate}, {@link java.time.LocalTime},
* {@link java.time.LocalDateTime} and {@link java.time.OffsetDateTime}. By default, the TOML parser just returns
* them as strings.
* <p>
* When this option is set, these time types will be parsed to their proper {@code java.time} counterparts and
* appear as {@link com.fasterxml.jackson.core.JsonToken#VALUE_EMBEDDED_OBJECT} tokens.
*/
PARSE_JAVA_TIME(false);

final boolean _defaultState;
Expand Down

0 comments on commit 776690f

Please sign in to comment.