Skip to content

Commit 790d6e2

Browse files
committed
8255533: Incorrect javadoc in DateTimeFormatterBuilder.appendPattern() for 'uu'/'yy'
Reviewed-by: lancea, rriggs
1 parent 3f20612 commit 790d6e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,11 +1556,11 @@ public DateTimeFormatterBuilder appendOptional(DateTimeFormatter formatter) {
15561556
* GGGGG 5 appendText(ChronoField.ERA, TextStyle.NARROW)
15571557
*
15581558
* u 1 appendValue(ChronoField.YEAR, 1, 19, SignStyle.NORMAL)
1559-
* uu 2 appendValueReduced(ChronoField.YEAR, 2, 2000)
1559+
* uu 2 appendValueReduced(ChronoField.YEAR, 2, 2, 2000)
15601560
* uuu 3 appendValue(ChronoField.YEAR, 3, 19, SignStyle.NORMAL)
15611561
* u..u 4..n appendValue(ChronoField.YEAR, n, 19, SignStyle.EXCEEDS_PAD)
15621562
* y 1 appendValue(ChronoField.YEAR_OF_ERA, 1, 19, SignStyle.NORMAL)
1563-
* yy 2 appendValueReduced(ChronoField.YEAR_OF_ERA, 2, 2000)
1563+
* yy 2 appendValueReduced(ChronoField.YEAR_OF_ERA, 2, 2, 2000)
15641564
* yyy 3 appendValue(ChronoField.YEAR_OF_ERA, 3, 19, SignStyle.NORMAL)
15651565
* y..y 4..n appendValue(ChronoField.YEAR_OF_ERA, n, 19, SignStyle.EXCEEDS_PAD)
15661566
* Y 1 append special localized WeekFields element for numeric week-based-year

0 commit comments

Comments
 (0)