RFR: 8200888: typo in name of exception in @throws

Jonathan Gibbons jonathan.gibbons at oracle.com
Thu Apr 5 00:47:40 UTC 2018


Thanks, Joe,

The use of @exception is pervasive in this file, so I think consistency 
wins over localized stylistic changes. But yes, maybe we should do more 
global updates at some point.

-- Jon

On 04/04/2018 05:24 PM, Joseph D. Darcy wrote:
> 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