RFR: 8200888: typo in name of exception in @throws
Joseph D. Darcy
joe.darcy at oracle.com
Thu Apr 5 00:24:08 UTC 2018
Looks fine; even better if @exception is replaced with @throws :-)
-Joe
On 4/4/2018 5:21 PM, Jonathan Gibbons wrote:
> Please review this tiny fix to a typo in the name of an exception in
> @throws:
>
> No webrev; here's the change: NullPointerExcpetion ->
> NullPointerException
>
> diff -r 3930c4d4f805
> src/java.base/share/classes/java/text/ChoiceFormat.java
> --- a/src/java.base/share/classes/java/text/ChoiceFormat.java Wed Apr
> 04 14:42:53 2018 -0700
> +++ b/src/java.base/share/classes/java/text/ChoiceFormat.java Wed Apr
> 04 17:12:53 2018 -0700
> @@ -312,7 +312,7 @@
> * Constructs with limits and corresponding formats based on the
> pattern.
> *
> * @param newPattern the new pattern string
> - * @exception NullPointerExcpetion if {@code newPattern} is
> + * @exception NullPointerException if {@code newPattern} is
> * {@code null}
> * @see #applyPattern
> */
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8200888
>
> -- Jon
More information about the core-libs-dev
mailing list