mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8230648: Replace @exception tag with @throws in java.base
Minor coding style update of javadoc tag in any file in java.base Reviewed-by: prappo, lancea
This commit is contained in:
parent
2fc6c6459d
commit
b15b322cf3
196 changed files with 1959 additions and 1962 deletions
|
@ -259,11 +259,11 @@ public abstract class NumberFormat extends Format {
|
|||
* to 0 and 9, respectively for the output string
|
||||
* {@code 1,234,567.89}.
|
||||
* @return the value passed in as <code>toAppendTo</code>
|
||||
* @exception IllegalArgumentException if <code>number</code> is
|
||||
* @throws IllegalArgumentException if <code>number</code> is
|
||||
* null or not an instance of <code>Number</code>.
|
||||
* @exception NullPointerException if <code>toAppendTo</code> or
|
||||
* @throws NullPointerException if <code>toAppendTo</code> or
|
||||
* <code>pos</code> 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 @@ public abstract class NumberFormat extends Format {
|
|||
*
|
||||
* @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 @@ public abstract class NumberFormat extends Format {
|
|||
*
|
||||
* @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 @@ public abstract class NumberFormat extends Format {
|
|||
* 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 @@ public abstract class NumberFormat extends Format {
|
|||
* 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 @@ public abstract class NumberFormat extends Format {
|
|||
*
|
||||
* @param source A <code>String</code> whose beginning should be parsed.
|
||||
* @return A <code>Number</code> 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 @@ public abstract class NumberFormat extends Format {
|
|||
* <code>UnsupportedOperationException</code>.
|
||||
*
|
||||
* @return the currency used by this number format, or <code>null</code>
|
||||
* @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 @@ public abstract class NumberFormat extends Format {
|
|||
* <code>UnsupportedOperationException</code>.
|
||||
*
|
||||
* @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 <code>currency</code> is null
|
||||
* @throws NullPointerException if <code>currency</code> is null
|
||||
* @since 1.4
|
||||
*/
|
||||
public void setCurrency(Currency currency) {
|
||||
|
@ -924,7 +924,7 @@ public abstract class NumberFormat extends Format {
|
|||
* 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 <code>RoundingMode</code> used for this NumberFormat.
|
||||
* @see #setRoundingMode(RoundingMode)
|
||||
|
@ -941,9 +941,9 @@ public abstract class NumberFormat extends Format {
|
|||
* 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 <code>roundingMode</code> is null
|
||||
* @throws NullPointerException if <code>roundingMode</code> is null
|
||||
* @param roundingMode The <code>RoundingMode</code> to be used
|
||||
* @see #getRoundingMode()
|
||||
* @since 1.6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue