Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8169758

Typo in Javadoc of java.time.Duration:parse

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      I think there is a typo in the Javadoc of the parse method of java.time.Duration: a "a" should be used before "long" and not a "an".

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The number of days, hours and minutes must parse to a long.
      ACTUAL -
      The number of days, hours and minutes must parse to an long.

      URL OF FAULTY DOCUMENTATION :
      https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html#parse-java.lang.CharSequence-

            aroy Abhijit Roy (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: