diff -r 33de7752835c -r 94bb65cb37d3 src/java.base/share/classes/java/text/NumberFormat.java --- a/src/java.base/share/classes/java/text/NumberFormat.java Fri Sep 20 11:33:30 2019 +0800 +++ b/src/java.base/share/classes/java/text/NumberFormat.java Fri Sep 20 11:07:52 2019 +0100 @@ -259,11 +259,11 @@ * to 0 and 9, respectively for the output string * {@code 1,234,567.89}. * @return the value passed in as toAppendTo - * @exception IllegalArgumentException if number is + * @throws IllegalArgumentException if number is * null or not an instance of Number. - * @exception NullPointerException if toAppendTo or + * @throws NullPointerException if toAppendTo or * pos is null - * @exception ArithmeticException if rounding is needed with rounding + * @throws ArithmeticException if rounding is needed with rounding * mode being set to RoundingMode.UNNECESSARY * @see java.text.FieldPosition */ @@ -318,7 +318,7 @@ * * @param number the double number to format * @return the formatted String - * @exception ArithmeticException if rounding is needed with rounding + * @throws ArithmeticException if rounding is needed with rounding * mode being set to RoundingMode.UNNECESSARY * @see java.text.Format#format */ @@ -343,7 +343,7 @@ * * @param number the long number to format * @return the formatted String - * @exception ArithmeticException if rounding is needed with rounding + * @throws ArithmeticException if rounding is needed with rounding * mode being set to RoundingMode.UNNECESSARY * @see java.text.Format#format */ @@ -367,7 +367,7 @@ * to 0 and 9, respectively for the output string * {@code 1,234,567.89}. * @return the formatted StringBuffer - * @exception ArithmeticException if rounding is needed with rounding + * @throws ArithmeticException if rounding is needed with rounding * mode being set to RoundingMode.UNNECESSARY * @see java.text.Format#format */ @@ -390,7 +390,7 @@ * to 0 and 11, respectively for the output string * {@code 123,456,789}. * @return the formatted StringBuffer - * @exception ArithmeticException if rounding is needed with rounding + * @throws ArithmeticException if rounding is needed with rounding * mode being set to RoundingMode.UNNECESSARY * @see java.text.Format#format */ @@ -424,7 +424,7 @@ * * @param source A String whose beginning should be parsed. * @return A Number parsed from the string. - * @exception ParseException if the beginning of the specified string + * @throws ParseException if the beginning of the specified string * cannot be parsed. */ public Number parse(String source) throws ParseException { @@ -891,7 +891,7 @@ * UnsupportedOperationException. * * @return the currency used by this number format, or null - * @exception UnsupportedOperationException if the number format class + * @throws UnsupportedOperationException if the number format class * doesn't implement currency formatting * @since 1.4 */ @@ -908,9 +908,9 @@ * UnsupportedOperationException. * * @param currency the new currency to be used by this number format - * @exception UnsupportedOperationException if the number format class + * @throws UnsupportedOperationException if the number format class * doesn't implement currency formatting - * @exception NullPointerException if currency is null + * @throws NullPointerException if currency is null * @since 1.4 */ public void setCurrency(Currency currency) { @@ -924,7 +924,7 @@ * Subclasses which handle different rounding modes should override * this method. * - * @exception UnsupportedOperationException The default implementation + * @throws UnsupportedOperationException The default implementation * always throws this exception * @return The RoundingMode used for this NumberFormat. * @see #setRoundingMode(RoundingMode) @@ -941,9 +941,9 @@ * Subclasses which handle different rounding modes should override * this method. * - * @exception UnsupportedOperationException The default implementation + * @throws UnsupportedOperationException The default implementation * always throws this exception - * @exception NullPointerException if roundingMode is null + * @throws NullPointerException if roundingMode is null * @param roundingMode The RoundingMode to be used * @see #getRoundingMode() * @since 1.6