Skip to content

Commit 31d9f31

Browse files
committed
Polish Javadoc for @DateTimeFormat
1 parent 0fd774e commit 31d9f31

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

spring-context/src/main/java/org/springframework/format/annotation/DateTimeFormat.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,14 +36,17 @@
3636
*
3737
* <p>For ISO-based formatting, set the {@link #iso} attribute to be the desired {@link ISO} format,
3838
* such as {@link ISO#DATE}. For custom formatting, set the {@link #pattern} attribute to be the
39-
* DateTime pattern, such as {@code yyyy/MM/dd hh:mm:ss a}.
39+
* DateTime pattern, such as {@code "yyyy/MM/dd hh:mm:ss a"}.
4040
*
4141
* <p>Each attribute is mutually exclusive, so only set one attribute per annotation instance
42-
* (the one most convenient one for your formatting needs).
43-
* When the pattern attribute is specified, it takes precedence over both the style and ISO attribute.
44-
* When the {@link #iso} attribute is specified, it takes precedence over the style attribute.
45-
* When no annotation attributes are specified, the default format applied is style-based
46-
* with a style code of 'SS' (short date, short time).
42+
* (the one most convenient for your formatting needs).
43+
*
44+
* <ul>
45+
* <li>When the pattern attribute is specified, it takes precedence over both the style and ISO attribute.</li>
46+
* <li>When the {@link #iso} attribute is specified, it takes precedence over the style attribute.</li>
47+
* <li>When no annotation attributes are specified, the default format applied is style-based
48+
* with a style code of 'SS' (short date, short time).</li>
49+
* </ul>
4750
*
4851
* @author Keith Donald
4952
* @author Juergen Hoeller

0 commit comments

Comments
 (0)