Skip to content

Commit

Permalink
8260596: Comment cleanup in BigInteger
Browse files Browse the repository at this point in the history
Reviewed-by: bpb
  • Loading branch information
wangweij committed Jan 28, 2021
1 parent 1de3c55 commit 2b166d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/java.base/share/classes/java/math/BigInteger.java
Expand Up @@ -465,7 +465,7 @@ private BigInteger(int signum, int[] magnitude) {
* consists of an optional minus or plus sign followed by a
* sequence of one or more digits in the specified radix. The
* character-to-digit mapping is provided by {@link
* Character#digit(char, char) Character.digit}. The String may
* Character#digit(char, int) Character.digit}. The String may
* not contain any extraneous characters (whitespace, for
* example).
*
Expand Down Expand Up @@ -662,7 +662,7 @@ private static void destructiveMulAdd(int[] x, int y, int z) {
* into a BigInteger. The String representation consists of an
* optional minus or plus sign followed by a sequence of one or
* more decimal digits. The character-to-digit mapping is
* provided by {@link Character#digit(char, char)
* provided by {@link Character#digit(char, int)
* Character.digit}. The String may not contain any extraneous
* characters (whitespace, for example).
*
Expand Down Expand Up @@ -3974,7 +3974,7 @@ public String toString(int radix) {
* If {@code numZeros > 0}, appends that many zeros to the
* specified StringBuilder; otherwise, does nothing.
*
* @param sb The StringBuilder that will be appended to.
* @param buf The StringBuilder that will be appended to.
* @param numZeros The number of zeros to append.
*/
private static void padWithZeros(StringBuilder buf, int numZeros) {
Expand All @@ -3993,7 +3993,7 @@ private static void padWithZeros(StringBuilder buf, int numZeros) {
* (pre-pending with zeros) will be effected.
*
* @param radix The base to convert to.
* @param sb The StringBuilder that will be appended to in place.
* @param buf The StringBuilder that will be appended to in place.
* @param digits The minimum number of digits to pad to.
*/
private void smallToString(int radix, StringBuilder buf, int digits) {
Expand Down Expand Up @@ -4626,7 +4626,7 @@ private int getInt(int n) {
* least significant). If the magnitude is zero, return value is undefined.
*
* <p>Note: never used for a BigInteger with a magnitude of zero.
* @see #getInt.
* @see #getInt
*/
private int firstNonzeroIntNum() {
int fn = firstNonzeroIntNumPlusTwo - 2;
Expand Down

1 comment on commit 2b166d8

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.