changeset 10843:ebfc49ea7c5f

8075678: java.time javadoc error in DateTimeFormatter::parsedLeapSecond 8075676: java.time package javadoc typos Reviewed-by: lancea, scolebourne, coffeys
author rriggs
date Thu, 28 May 2015 17:37:33 -0400
parents 587ff69bdab2
children 8f8011a977a6
files src/share/classes/java/time/format/DateTimeFormatter.java src/share/classes/java/time/package-info.java
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/time/format/DateTimeFormatter.java	Fri Jan 30 16:13:57 2015 -0500
+++ b/src/share/classes/java/time/format/DateTimeFormatter.java	Thu May 28 17:37:33 2015 -0400
@@ -1333,8 +1333,8 @@
      * If the time '23:59:60' is received, then a simple conversion is applied,
      * replacing the second-of-minute of 60 with 59. This query can be used
      * on the parse result to determine if the leap-second adjustment was made.
-     * The query will return one second of excess if it did adjust to remove
-     * the leap-second, and zero if not. Note that applying a leap-second
+     * The query will return {@code true} if it did adjust to remove the
+     * leap-second, and {@code false} if not. Note that applying a leap-second
      * smoothing mechanism, such as UTC-SLS, is the responsibility of the
      * application, as follows:
      * <pre>
--- a/src/share/classes/java/time/package-info.java	Fri Jan 30 16:13:57 2015 -0500
+++ b/src/share/classes/java/time/package-info.java	Thu May 28 17:37:33 2015 -0400
@@ -120,9 +120,10 @@
  *
  * <h3>Duration and Period</h3>
  * <p>
- * Beyond dates and times, the API also allows the storage of period and durations of time.
+ * Beyond dates and times, the API also allows the storage of periods and durations of time.
  * A {@link java.time.Duration} is a simple measure of time along the time-line in nanoseconds.
- * A {@link java.time.Period} expresses an amount of time in units meaningful to humans, such as years or hours.
+ * A {@link java.time.Period} expresses an amount of time in units meaningful
+ * to humans, such as years or days.
  * </p>
  *
  * <h3>Additional value types</h3>