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

javadoc typo in NumberFormat::setMinimumFractionDigits

XMLWordPrintable

    • b18
    • Not verified

      Looks like a copy-paste bug:

      --- a/src/java.base/share/classes/java/text/NumberFormat.java
      +++ b/src/java.base/share/classes/java/text/NumberFormat.java
      @@ -860,17 +860,17 @@
           public int getMinimumFractionDigits() {
               return minimumFractionDigits;
           }
       
           /**
            * Sets the minimum number of digits allowed in the fraction portion of a
            * number. minimumFractionDigits must be ≤ maximumFractionDigits. If the
            * new value for minimumFractionDigits exceeds the current value
      - * of maximumFractionDigits, then maximumIntegerDigits will also be set to
      + * of maximumFractionDigits, then maximumFractionDigits will also be set to
            * the new value
            *
            * @param newValue the minimum number of fraction digits to be shown; if
            * less than zero, then zero is used. The concrete subclass may enforce an
            * upper limit to this value appropriate to the numeric type being formatted.
            * @see #getMinimumFractionDigits
            */
           public void setMinimumFractionDigits(int newValue) {

            naoto Naoto Sato
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: