Skip to content

Commit c12f874

Browse files
committed
minor javadoc improvement for JsonFormat.FormatFeature#ADJUST_DATES_TO_CONTEXT_TIME_ZONE
1 parent 1b02687 commit c12f874

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/fasterxml/jackson/annotation/JsonFormat.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,12 @@ public enum Feature {
276276
* Override for <code>DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIMEZONE</code>
277277
* that specifies whether context provided timezone
278278
* <code>DeserializationContext.getTimeZone()</code> should be used to adjust Date/Time
279-
* values on deserialization, even if value itself contains timezone information
279+
* values on deserialization, even if value itself contains timezone informatio
280+
*<p>
281+
* NOTE: due to limitations of "old" JDK date/time types (that is,
282+
* {@link java.util.Date} and {@link java.util.Calendar}), this setting is only
283+
* applicable to <code>Joda</code> and <code>Java 8 date/time</code> values,
284+
* but not to <code>java.util.Date</code> or <code>java.util.Calendar</code>.
280285
*
281286
* @since 2.8
282287
*/

0 commit comments

Comments
 (0)