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

typos in java.math

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b03

      Description

      A colleague reported some typo fixes in java.math:

      diff --git a/src/java.base/share/classes/java/math/BigDecimal.java b/src/java.base/share/classes/java/math/BigDecimal.java
      --- a/src/java.base/share/classes/java/math/BigDecimal.java
      +++ b/src/java.base/share/classes/java/math/BigDecimal.java
      @@ -937,1 +937,1 @@
      - * Special case zero to supress nonterminating normalization and bogus
      + * Special case zero to suppress nonterminating normalization and bogus
      @@ -4055,1 +4055,1 @@
      - // 1. pows is a private local varible;
      + // 1. pows is a private local variable;
      diff --git a/src/java.base/share/classes/java/math/BigInteger.java b/src/java.base/share/classes/java/math/BigInteger.java
      --- a/src/java.base/share/classes/java/math/BigInteger.java
      +++ b/src/java.base/share/classes/java/math/BigInteger.java
      @@ -2754,1 +2754,1 @@
      - // Caculate (base ** exponent) mod m1.
      + // Calculate (base ** exponent) mod m1.
      @@ -2908,1 +2908,1 @@
      - * squaring, ... 1/2^(k-1) of the time, it reqires k-2 squarings.
      + * squaring, ... 1/2^(k-1) of the time, it requires k-2 squarings.

        Attachments

          Activity

            People

            Assignee:
            martin Martin Buchholz
            Reporter:
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: