8171348: Incorrect documentation for DateTimeFormatter letter 'k'
authorrriggs
Mon, 26 Dec 2016 23:20:57 +0530
changeset 43007 4de62a95642c
parent 43006 e2fdc8ee8588
child 43008 c6c74a38f1ad
8171348: Incorrect documentation for DateTimeFormatter letter 'k' Reviewed-by: rriggs Contributed-by: abhijit.r.roy@oracle.com
jdk/src/java.base/share/classes/java/time/format/DateTimeFormatter.java
jdk/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java
--- a/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatter.java	Mon Dec 26 23:15:06 2016 +0530
+++ b/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatter.java	Mon Dec 26 23:20:57 2016 +0530
@@ -297,7 +297,7 @@
  *   a       am-pm-of-day                text              PM
  *   h       clock-hour-of-am-pm (1-12)  number            12
  *   K       hour-of-am-pm (0-11)        number            0
- *   k       clock-hour-of-am-pm (1-24)  number            0
+ *   k       clock-hour-of-day (1-24)    number            24
  *
  *   H       hour-of-day (0-23)          number            0
  *   m       minute-of-hour              number            30
--- a/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java	Mon Dec 26 23:15:06 2016 +0530
+++ b/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatterBuilder.java	Mon Dec 26 23:20:57 2016 +0530
@@ -1486,12 +1486,12 @@
      *   W       week-of-month               number            4
      *   E       day-of-week                 text              Tue; Tuesday; T
      *   e/c     localized day-of-week       number/text       2; 02; Tue; Tuesday; T
-     *   F       week-of-month               number            3
+     *   F       day-of-week-in-month        number            3
      *
      *   a       am-pm-of-day                text              PM
      *   h       clock-hour-of-am-pm (1-12)  number            12
      *   K       hour-of-am-pm (0-11)        number            0
-     *   k       clock-hour-of-am-pm (1-24)  number            0
+     *   k       clock-hour-of-day (1-24)    number            24
      *
      *   H       hour-of-day (0-23)          number            0
      *   m       minute-of-hour              number            30