diff -r 33de7752835c -r 94bb65cb37d3 src/java.base/share/classes/java/util/Currency.java
--- a/src/java.base/share/classes/java/util/Currency.java Fri Sep 20 11:33:30 2019 +0800
+++ b/src/java.base/share/classes/java/util/Currency.java Fri Sep 20 11:07:52 2019 +0100
@@ -289,8 +289,8 @@
*
* @param currencyCode the ISO 4217 code of the currency
* @return the Currency
instance for the given currency code
- * @exception NullPointerException if currencyCode
is null
- * @exception IllegalArgumentException if currencyCode
is not
+ * @throws NullPointerException if currencyCode
is null
+ * @throws IllegalArgumentException if currencyCode
is not
* a supported ISO 4217 code.
*/
public static Currency getInstance(String currencyCode) {
@@ -372,9 +372,9 @@
* instance is needed
* @return the Currency
instance for the country of the given
* locale, or {@code null}
- * @exception NullPointerException if locale
+ * @throws NullPointerException if locale
* is {@code null}
- * @exception IllegalArgumentException if the country of the given {@code locale}
+ * @throws IllegalArgumentException if the country of the given {@code locale}
* is not a supported ISO 3166 country code.
*/
public static Currency getInstance(Locale locale) {
@@ -537,7 +537,7 @@
* @param locale the locale for which a display name for this currency is
* needed
* @return the symbol of this currency for the specified locale
- * @exception NullPointerException if locale
is null
+ * @throws NullPointerException if locale
is null
*/
public String getSymbol(Locale locale) {
LocaleServiceProviderPool pool =
@@ -632,7 +632,7 @@
* @param locale the locale for which a display name for this currency is
* needed
* @return the display name of this currency for the specified locale
- * @exception NullPointerException if locale
is null
+ * @throws NullPointerException if locale
is null
* @since 1.7
*/
public String getDisplayName(Locale locale) {
@@ -1197,5 +1197,3 @@
}
}
-
-