From fe00ca3444465d983ddf0907e07ea592a0264c36 Mon Sep 17 00:00:00 2001 From: rriggs Date: Thu, 28 May 2015 17:37:33 -0400 Subject: [PATCH] 8075678: java.time javadoc error in DateTimeFormatter::parsedLeapSecond 8075676: java.time package javadoc typos Reviewed-by: lancea, scolebourne, coffeys --- src/share/classes/java/time/format/DateTimeFormatter.java | 4 ++-- src/share/classes/java/time/package-info.java | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/share/classes/java/time/format/DateTimeFormatter.java b/src/share/classes/java/time/format/DateTimeFormatter.java index 7f0c8db1f..57a0bf897 100644 --- a/src/share/classes/java/time/format/DateTimeFormatter.java +++ b/src/share/classes/java/time/format/DateTimeFormatter.java @@ -1333,8 +1333,8 @@ public final class DateTimeFormatter { * 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: *
diff --git a/src/share/classes/java/time/package-info.java b/src/share/classes/java/time/package-info.java
index d74682080..ea160ffff 100644
--- a/src/share/classes/java/time/package-info.java
+++ b/src/share/classes/java/time/package-info.java
@@ -120,9 +120,10 @@
  *
  * 

Duration and Period

*

- * 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. *

* *

Additional value types

-- GitLab