1
1
/*
2
- * Copyright 2002-2022 the original author or authors.
2
+ * Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -76,8 +76,8 @@ public DateTimeFormatterRegistrar() {
76
76
77
77
/**
78
78
* Set whether standard ISO formatting should be applied to all date/time types.
79
- * Default is "false" (no).
80
- * <p>If set to "true", the "dateStyle", "timeStyle" and "dateTimeStyle"
79
+ * <p> Default is "false" (no).
80
+ * <p>If set to "true", the "dateStyle", "timeStyle", and "dateTimeStyle"
81
81
* properties are effectively ignored.
82
82
*/
83
83
public void setUseIsoFormat (boolean useIsoFormat ) {
@@ -88,23 +88,23 @@ public void setUseIsoFormat(boolean useIsoFormat) {
88
88
89
89
/**
90
90
* Set the default format style of {@link java.time.LocalDate} objects.
91
- * Default is {@link java.time.format.FormatStyle#SHORT}.
91
+ * <p> Default is {@link java.time.format.FormatStyle#SHORT}.
92
92
*/
93
93
public void setDateStyle (FormatStyle dateStyle ) {
94
94
this .factories .get (Type .DATE ).setDateStyle (dateStyle );
95
95
}
96
96
97
97
/**
98
98
* Set the default format style of {@link java.time.LocalTime} objects.
99
- * Default is {@link java.time.format.FormatStyle#SHORT}.
99
+ * <p> Default is {@link java.time.format.FormatStyle#SHORT}.
100
100
*/
101
101
public void setTimeStyle (FormatStyle timeStyle ) {
102
102
this .factories .get (Type .TIME ).setTimeStyle (timeStyle );
103
103
}
104
104
105
105
/**
106
106
* Set the default format style of {@link java.time.LocalDateTime} objects.
107
- * Default is {@link java.time.format.FormatStyle#SHORT}.
107
+ * <p> Default is {@link java.time.format.FormatStyle#SHORT}.
108
108
*/
109
109
public void setDateTimeStyle (FormatStyle dateTimeStyle ) {
110
110
this .factories .get (Type .DATE_TIME ).setDateTimeStyle (dateTimeStyle );
@@ -138,7 +138,7 @@ public void setTimeFormatter(DateTimeFormatter formatter) {
138
138
139
139
/**
140
140
* Set the formatter that will be used for objects representing date and time values.
141
- * <p>This formatter will be used for {@link LocalDateTime}, {@link ZonedDateTime}
141
+ * <p>This formatter will be used for {@link LocalDateTime}, {@link ZonedDateTime},
142
142
* and {@link OffsetDateTime} types. When specified, the
143
143
* {@link #setDateTimeStyle dateTimeStyle} and
144
144
* {@link #setUseIsoFormat useIsoFormat} properties will be ignored.
0 commit comments