--- old/src/java.base/share/classes/java/math/BigDecimal.java 2015-08-03 12:10:17.735936325 +0300
+++ new/src/java.base/share/classes/java/math/BigDecimal.java 2015-08-03 12:10:17.391764317 +0300
@@ -40,7 +40,7 @@
* decimal point. If negative, the unscaled value of the number is
* multiplied by ten to the power of the negation of the scale. The
* value of the number represented by the {@code BigDecimal} is
- * therefore (unscaledValue × 10-scale).
+ * therefore (unscaledValue × 10-scale)
.
*
*
The {@code BigDecimal} class provides operations for
* arithmetic, scale manipulation, rounding, comparison, hashing, and
@@ -709,8 +709,8 @@
/**
* Translates the string representation of a {@code BigDecimal}
* into a {@code BigDecimal}. The string representation consists
- * of an optional sign, {@code '+'} ( '\u002B') or
- * {@code '-'} ('\u002D'), followed by a sequence of
+ * of an optional sign, {@code '+'} ( '\u002B'
) or
+ * {@code '-'} ('\u002D'
), followed by a sequence of
* zero or more decimal digits ("the integer"), optionally
* followed by a fraction, optionally followed by an exponent.
*
@@ -721,7 +721,7 @@
* significand.
*
*
The exponent consists of the character {@code 'e'}
- * ('\u0065') or {@code 'E'} ('\u0045')
+ * ('\u0065'
) or {@code 'E'} ('\u0045'
)
* followed by one or more decimal digits. The value of the
* exponent must lie between -{@link Integer#MAX_VALUE} ({@link
* Integer#MIN_VALUE}+1) and {@link Integer#MAX_VALUE}, inclusive.
@@ -834,7 +834,7 @@
* is the exact decimal representation of the {@code double}'s
* binary floating-point value. The scale of the returned
* {@code BigDecimal} is the smallest value such that
- * (10scale × val) is an integer.
+ * (10scale × val)
is an integer.
*
* Notes: *
{@linkplain #BigDecimal(String)
+ * String constructor}
be used in preference to this one.
*
* (10scale × val)
is an integer.
*
* The results of this constructor can be somewhat unpredictable
* and its use is generally not recommended; see the notes under
@@ -1010,7 +1010,7 @@
* Translates a {@code BigInteger} unscaled value and an
* {@code int} scale into a {@code BigDecimal}. The value of
* the {@code BigDecimal} is
- * (unscaledVal × 10-scale).
+ * (unscaledVal × 10-scale)
.
*
* @param unscaledVal unscaled value of the {@code BigDecimal}.
* @param scale scale of the {@code BigDecimal}.
@@ -1026,8 +1026,8 @@
* Translates a {@code BigInteger} unscaled value and an
* {@code int} scale into a {@code BigDecimal}, with rounding
* according to the context settings. The value of the
- * {@code BigDecimal} is (unscaledVal ×
- * 10-scale), rounded according to the
+ * {@code BigDecimal} is (unscaledVal ×
+ * 10-scale)
, rounded according to the
* {@code precision} and rounding mode settings.
*
* @param unscaledVal unscaled value of the {@code BigDecimal}.
@@ -1196,7 +1196,7 @@
* @param unscaledVal unscaled value of the {@code BigDecimal}.
* @param scale scale of the {@code BigDecimal}.
* @return a {@code BigDecimal} whose value is
- * (unscaledVal × 10-scale).
+ * (unscaledVal × 10-scale)
.
*/
public static BigDecimal valueOf(long unscaledVal, int scale) {
if (scale == 0)
@@ -1476,8 +1476,8 @@
}
/**
- * Returns a {@code BigDecimal} whose value is (this ×
- * multiplicand), and whose scale is {@code (this.scale() +
+ * Returns a {@code BigDecimal} whose value is (this ×
+ * multiplicand)
, and whose scale is {@code (this.scale() +
* multiplicand.scale())}.
*
* @param multiplicand value to be multiplied by this {@code BigDecimal}.
@@ -1501,8 +1501,8 @@
}
/**
- * Returns a {@code BigDecimal} whose value is (this ×
- * multiplicand), with rounding according to the context settings.
+ * Returns a {@code BigDecimal} whose value is (this ×
+ * multiplicand)
, with rounding according to the context settings.
*
* @param multiplicand value to be multiplied by this {@code BigDecimal}.
* @param mc the context to use.
@@ -1995,7 +1995,7 @@
/**
* Returns a {@code BigDecimal} whose value is
- * (thisn), The power is computed exactly, to
+ * (thisn)
, The power is computed exactly, to
* unlimited precision.
*
*
The parameter {@code n} must be in the range 0 through
@@ -2006,7 +2006,7 @@
* range of this method.
*
* @param n power to raise this {@code BigDecimal} to.
- * @return thisn
+ * @return thisn
* @throws ArithmeticException if {@code n} is out of range.
* @since 1.5
*/
@@ -2022,7 +2022,7 @@
/**
* Returns a {@code BigDecimal} whose value is
- * (thisn). The current implementation uses
+ * (thisn)
. The current implementation uses
* the core algorithm defined in ANSI standard X3.274-1996 with
* rounding according to the context settings. In general, the
* returned numerical value is within two ulps of the exact
@@ -2063,7 +2063,7 @@
*
* @param n power to raise this {@code BigDecimal} to.
* @param mc the context to use.
- * @return thisn using the ANSI standard X3.274-1996
+ * @return thisn
using the ANSI standard X3.274-1996
* algorithm
* @throws ArithmeticException if the result is inexact but the
* rounding mode is {@code UNNECESSARY}, or {@code n} is out
@@ -2251,8 +2251,8 @@
/**
* Returns a {@code BigInteger} whose value is the unscaled
- * value of this {@code BigDecimal}. (Computes (this *
- * 10this.scale()).)
+ * value of this {@code BigDecimal}. (Computes (this *
+ * 10this.scale())
.)
*
* @return the unscaled value of this {@code BigDecimal}.
* @since 1.2
@@ -2371,7 +2371,7 @@
*
Note that since BigDecimal objects are immutable, calls of
* this method do not result in the original object being
* modified, contrary to the usual convention of having methods
- * named setX mutate field {@code X}.
+ * named setX
mutate field {@code X}.
* Instead, {@code setScale} returns an object with the proper
* scale; the returned object may or may not be newly allocated.
*
@@ -2404,7 +2404,7 @@
*
Note that since BigDecimal objects are immutable, calls of
* this method do not result in the original object being
* modified, contrary to the usual convention of having methods
- * named setX mutate field {@code X}.
+ * named setX
mutate field {@code X}.
* Instead, {@code setScale} returns an object with the proper
* scale; the returned object may or may not be newly allocated.
*
@@ -2498,7 +2498,7 @@
*
Note that since {@code BigDecimal} objects are immutable,
* calls of this method do not result in the original
* object being modified, contrary to the usual convention of
- * having methods named setX mutate field
+ * having methods named setX
mutate field
* {@code X}. Instead, {@code setScale} returns an
* object with the proper scale; the returned object may or may
* not be newly allocated.
@@ -2525,8 +2525,8 @@
* {@code n} is non-negative, the call merely adds {@code n} to
* the scale. If {@code n} is negative, the call is equivalent
* to {@code movePointRight(-n)}. The {@code BigDecimal}
- * returned by this call has value (this ×
- * 10-n) and scale {@code max(this.scale()+n,
+ * returned by this call has value (this ×
+ * 10-n)
and scale {@code max(this.scale()+n,
* 0)}.
*
* @param n number of places to move the decimal point to the left.
@@ -2547,8 +2547,8 @@
* If {@code n} is non-negative, the call merely subtracts
* {@code n} from the scale. If {@code n} is negative, the call
* is equivalent to {@code movePointLeft(-n)}. The
- * {@code BigDecimal} returned by this call has value (this
- * × 10n) and scale {@code max(this.scale()-n,
+ * {@code BigDecimal} returned by this call has value (this
+ * × 10n)
and scale {@code max(this.scale()-n,
* 0)}.
*
* @param n number of places to move the decimal point to the right.
@@ -2825,12 +2825,12 @@
* adjusted exponent converted to a character form. The latter is
* in base ten, using the characters {@code '0'} through
* {@code '9'} with no leading zeros, and is always prefixed by a
- * sign character {@code '-'} ('\u002D') if the
+ * sign character {@code '-'} ('\u002D'
) if the
* adjusted exponent is negative, {@code '+'}
- * ('\u002B') otherwise).
+ * ('\u002B'
) otherwise).
*
*
Finally, the entire string is prefixed by a minus sign
- * character {@code '-'} ('\u002D') if the unscaled
+ * character {@code '-'} ('\u002D'
) if the unscaled
* value is less than zero. No sign character is prefixed if the
* unscaled value is zero or positive.
*
@@ -2930,7 +2930,7 @@
* in the result.
*
* The entire string is prefixed by a minus sign character '-'
- * ('\u002D') if the unscaled value is less than
+ * ('\u002D'
) if the unscaled value is less than
* zero. No sign character is prefixed if the unscaled value is
* zero or positive.
*