--- old/src/java.base/share/classes/java/math/BigInteger.java 2016-05-24 12:25:28.884975445 -0700 +++ new/src/java.base/share/classes/java/math/BigInteger.java 2016-05-24 12:25:28.532975450 -0700 @@ -116,6 +116,7 @@ * +2{@code Integer.MAX_VALUE} (exclusive). * * @see BigDecimal + * @jls 4.2.2 Integer Operations * @author Josh Bloch * @author Michael McCloskey * @author Alan Eliasen @@ -126,7 +127,7 @@ public class BigInteger extends Number implements Comparable { /** * The signum of this BigInteger: -1 for negative, 0 for zero, or - * 1 for positive. Note that the BigInteger zero must have + * 1 for positive. Note that the BigInteger zero must have * a signum of 0. This is necessary to ensures that there is exactly one * representation for each BigInteger value. */ @@ -710,7 +711,7 @@ * Constructs a randomly generated positive BigInteger that is probably * prime, with the specified bitLength. * - *

It is recommended that the {@link #probablePrime probablePrime} + * @apiNote It is recommended that the {@link #probablePrime probablePrime} * method be used in preference to this constructor unless there * is a compelling need to specify a certainty. * @@ -1157,9 +1158,11 @@ /** * Returns a BigInteger whose value is equal to that of the - * specified {@code long}. This "static factory method" is - * provided in preference to a ({@code long}) constructor - * because it allows for reuse of frequently used BigIntegers. + * specified {@code long}. + * + * @apiNote This static factory method is provided in preference + * to a ({@code long}) constructor because it allows for reuse of + * frequently used BigIntegers. * * @param val value of the BigInteger to return. * @return a BigInteger with the specified value. @@ -3551,13 +3554,13 @@ /** * Returns the number of bits in the minimal two's-complement - * representation of this BigInteger, excluding a sign bit. + * representation of this BigInteger, excluding a sign bit. * For positive BigIntegers, this is equivalent to the number of bits in * the ordinary binary representation. (Computes * {@code (ceil(log2(this < 0 ? -this : this+1)))}.) * * @return number of bits in the minimal two's-complement - * representation of this BigInteger, excluding a sign bit. + * representation of this BigInteger, excluding a sign bit. */ public int bitLength() { int n = bitLengthPlusOne - 1; @@ -4034,7 +4037,7 @@ * Converts this BigInteger to an {@code int}. This * conversion is analogous to a * narrowing primitive conversion from {@code long} to - * {@code int} as defined in section 5.1.3 of + * {@code int} as defined in * The Java™ Language Specification: * if this BigInteger is too big to fit in an * {@code int}, only the low-order 32 bits are returned. @@ -4044,6 +4047,7 @@ * * @return this BigInteger converted to an {@code int}. * @see #intValueExact() + * @jls 5.1.3 Narrowing Primitive Conversion */ public int intValue() { int result = 0; @@ -4055,7 +4059,7 @@ * Converts this BigInteger to a {@code long}. This * conversion is analogous to a * narrowing primitive conversion from {@code long} to - * {@code int} as defined in section 5.1.3 of + * {@code int} as defined in * The Java™ Language Specification: * if this BigInteger is too big to fit in a * {@code long}, only the low-order 64 bits are returned. @@ -4065,6 +4069,7 @@ * * @return this BigInteger converted to a {@code long}. * @see #longValueExact() + * @jls 5.1.3 Narrowing Primitive Conversion */ public long longValue() { long result = 0; @@ -4078,7 +4083,7 @@ * Converts this BigInteger to a {@code float}. This * conversion is similar to the * narrowing primitive conversion from {@code double} to - * {@code float} as defined in section 5.1.3 of + * {@code float} as defined in * The Java™ Language Specification: * if this BigInteger has too great a magnitude * to represent as a {@code float}, it will be converted to @@ -4088,6 +4093,7 @@ * information about the precision of the BigInteger value. * * @return this BigInteger converted to a {@code float}. + * @jls 5.1.3 Narrowing Primitive Conversion */ public float floatValue() { if (signum == 0) { @@ -4162,7 +4168,7 @@ * Converts this BigInteger to a {@code double}. This * conversion is similar to the * narrowing primitive conversion from {@code double} to - * {@code float} as defined in section 5.1.3 of + * {@code float} as defined in * The Java™ Language Specification: * if this BigInteger has too great a magnitude * to represent as a {@code double}, it will be converted to @@ -4172,6 +4178,7 @@ * information about the precision of the BigInteger value. * * @return this BigInteger converted to a {@code double}. + * @jls 5.1.3 Narrowing Primitive Conversion */ public double doubleValue() { if (signum == 0) {