Skip to content

Commit 46669c7

Browse files
committed
Minor javadoc improvement for #1786
1 parent c0cd01a commit 46669c7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/main/java/com/fasterxml/jackson/databind/util/StdDateFormat.java

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
* serializers and deserializers. For serialization defaults to using
1717
* an ISO-8601 compliant format (format String "yyyy-MM-dd'T'HH:mm:ss.SSSZ")
1818
* and for deserialization, both ISO-8601 and RFC-1123.
19+
*<br>
20+
* Note that `Z` in format String refers to RFC-822 timezone notation which produces
21+
* values like "-0800" -- that is, full minute/hour combo without colon, and not using `Z`
22+
* as alias for "+0000".
23+
*<p>
24+
* Note also that to enable use of colon in timezone is possible by using method
25+
* {@link #withColonInTimeZone} for creating new differently configured format instance.
1926
*/
2027
@SuppressWarnings("serial")
2128
public class StdDateFormat
@@ -145,6 +152,8 @@ public class StdDateFormat
145152

146153
/**
147154
* Whether the TZ offset must be formatted with a colon between hours and minutes ({@code HH:mm} format)
155+
*<p>
156+
* Defaults to {@code false} for backwards compatibility reasons
148157
*
149158
* @since 2.9.1
150159
*/

src/test/java/com/fasterxml/jackson/databind/util/ISO8601DateFormatTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.text.DateFormat;
44
import java.util.*;
55

6-
76
import com.fasterxml.jackson.databind.BaseMapTest;
87

98
@SuppressWarnings("deprecation")

0 commit comments

Comments
 (0)