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

typos in java.math

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • None
    • core-libs
    • b03

      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.

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: