OpenJDK / bsd-port / jdk8 / jdk
changeset 9011:1b503dd54b95
8031103: java.time.Duration has wrong Javadoc Comments in toDays() and toHours()
Summary: Correct specification for Duration.toDays, toHours
Reviewed-by: lancea, alanb
author | rriggs |
---|---|
date | Tue, 07 Jan 2014 11:50:15 -0500 |
parents | d77a1c9fd5b8 |
children | 2437ccbf3504 5d05be02629c |
files | src/share/classes/java/time/Duration.java |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/java/time/Duration.java Sun Dec 22 11:20:07 2013 +0100 +++ b/src/share/classes/java/time/Duration.java Tue Jan 07 11:50:15 2014 -0500 @@ -1112,29 +1112,29 @@ //----------------------------------------------------------------------- /** - * Gets the number of minutes in this duration. + * Gets the number of days in this duration. * <p> - * This returns the total number of minutes in the duration by dividing the + * This returns the total number of days in the duration by dividing the * number of seconds by 86400. * This is based on the standard definition of a day as 24 hours. * <p> * This instance is immutable and unaffected by this method call. * - * @return the number of minutes in the duration, may be negative + * @return the number of days in the duration, may be negative */ public long toDays() { return seconds / SECONDS_PER_DAY; } /** - * Gets the number of minutes in this duration. + * Gets the number of hours in this duration. * <p> - * This returns the total number of minutes in the duration by dividing the + * This returns the total number of hours in the duration by dividing the * number of seconds by 3600. * <p> * This instance is immutable and unaffected by this method call. * - * @return the number of minutes in the duration, may be negative + * @return the number of hours in the duration, may be negative */ public long toHours() { return seconds / SECONDS_PER_HOUR;