< prev index next >

src/java.base/share/classes/java/text/spi/NumberFormatProvider.java

Print this page
rev 56290 : 8230648: Replace @exception tag with @throws in java.base
Summary: Minor coding style update of javadoc tag in any file in java.base
Reviewed-by: prappo, lancea

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -48,12 +48,12 @@
     /**
      * Returns a new <code>NumberFormat</code> instance which formats
      * monetary values for the specified locale.
      *
      * @param locale the desired locale.
-     * @exception NullPointerException if <code>locale</code> is null
-     * @exception IllegalArgumentException if <code>locale</code> isn't
+     * @throws    NullPointerException if <code>locale</code> is null
+     * @throws    IllegalArgumentException if <code>locale</code> isn't
      *     one of the locales returned from
      *     {@link java.util.spi.LocaleServiceProvider#getAvailableLocales()
      *     getAvailableLocales()}.
      * @return a currency formatter
      * @see java.text.NumberFormat#getCurrencyInstance(java.util.Locale)

@@ -69,12 +69,12 @@
      * for formatting, and to parse only the integer part of
      * an input string (see {@link
      * java.text.NumberFormat#isParseIntegerOnly isParseIntegerOnly}).
      *
      * @param locale the desired locale
-     * @exception NullPointerException if <code>locale</code> is null
-     * @exception IllegalArgumentException if <code>locale</code> isn't
+     * @throws    NullPointerException if <code>locale</code> is null
+     * @throws    IllegalArgumentException if <code>locale</code> isn't
      *     one of the locales returned from
      *     {@link java.util.spi.LocaleServiceProvider#getAvailableLocales()
      *     getAvailableLocales()}.
      * @return a number format for integer values
      * @see java.text.NumberFormat#getIntegerInstance(java.util.Locale)

@@ -84,12 +84,12 @@
     /**
      * Returns a new general-purpose <code>NumberFormat</code> instance for
      * the specified locale.
      *
      * @param locale the desired locale
-     * @exception NullPointerException if <code>locale</code> is null
-     * @exception IllegalArgumentException if <code>locale</code> isn't
+     * @throws    NullPointerException if <code>locale</code> is null
+     * @throws    IllegalArgumentException if <code>locale</code> isn't
      *     one of the locales returned from
      *     {@link java.util.spi.LocaleServiceProvider#getAvailableLocales()
      *     getAvailableLocales()}.
      * @return a general-purpose number formatter
      * @see java.text.NumberFormat#getNumberInstance(java.util.Locale)

@@ -99,12 +99,12 @@
     /**
      * Returns a new <code>NumberFormat</code> instance which formats
      * percentage values for the specified locale.
      *
      * @param locale the desired locale
-     * @exception NullPointerException if <code>locale</code> is null
-     * @exception IllegalArgumentException if <code>locale</code> isn't
+     * @throws    NullPointerException if <code>locale</code> is null
+     * @throws    IllegalArgumentException if <code>locale</code> isn't
      *     one of the locales returned from
      *     {@link java.util.spi.LocaleServiceProvider#getAvailableLocales()
      *     getAvailableLocales()}.
      * @return a percent formatter
      * @see java.text.NumberFormat#getPercentInstance(java.util.Locale)
< prev index next >