8031103: java.time.Duration has wrong Javadoc Comments in toDays() and toHours()
authorrriggs
Tue, 07 Jan 2014 11:50:15 -0500
changeset 22118 02c4fd429df0
parent 22117 1efafbb25acb
child 22119 da8b8a10483f
8031103: java.time.Duration has wrong Javadoc Comments in toDays() and toHours() Summary: Correct specification for Duration.toDays, toHours Reviewed-by: lancea, alanb
jdk/src/share/classes/java/time/Duration.java
--- a/jdk/src/share/classes/java/time/Duration.java	Tue Jan 07 09:17:56 2014 -0800
+++ b/jdk/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;