Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8249273: Documentation of BigInteger(String) constructor does not men…
…tion leading plus

Reviewed-by: bpb
  • Loading branch information
jddarcy committed Aug 6, 2020
1 parent d70a42a commit c3464101c8ee43aae8d292d38ea5f442263e0f5e
Showing 1 changed file with 11 additions and 11 deletions.
@@ -464,17 +464,17 @@ private BigInteger(int signum, int[] magnitude) {
* specified radix into a BigInteger. The String representation
* 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 {@code
* Character.digit}. The String may not contain any extraneous
* characters (whitespace, for example).
* character-to-digit mapping is provided by {@link
* Character#digit(char, char) Character.digit}. The String may
* not contain any extraneous characters (whitespace, for
* example).
*
* @param val String representation of BigInteger.
* @param radix radix to be used in interpreting {@code val}.
* @throws NumberFormatException {@code val} is not a valid representation
* of a BigInteger in the specified radix, or {@code radix} is
* outside the range from {@link Character#MIN_RADIX} to
* {@link Character#MAX_RADIX}, inclusive.
* @see Character#digit
*/
public BigInteger(String val, int radix) {
int cursor = 0, numDigits;
@@ -658,17 +658,17 @@ private static void destructiveMulAdd(int[] x, int y, int z) {
}

/**
* Translates the decimal String representation of a BigInteger into a
* BigInteger. The String representation consists of an optional minus
* sign followed by a sequence of one or more decimal digits. The
* character-to-digit mapping is provided by {@code Character.digit}.
* The String may not contain any extraneous characters (whitespace, for
* example).
* Translates the decimal String representation of a BigInteger
* 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)
* Character.digit}. The String may not contain any extraneous
* characters (whitespace, for example).
*
* @param val decimal String representation of BigInteger.
* @throws NumberFormatException {@code val} is not a valid representation
* of a BigInteger.
* @see Character#digit
*/
public BigInteger(String val) {
this(val, 10);

0 comments on commit c346410

Please sign in to comment.