<i18n dev> RFR: JDK-8325898: ChoiceFormat returns erroneous result when formatting bad pattern [v4]
Justin Lu
jlu at openjdk.org
Fri Feb 23 17:29:18 UTC 2024
On Fri, 23 Feb 2024 00:21:57 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Justin Lu has updated the pull request incrementally with one additional commit since the last revision:
>>
>> revert enum change
>
> src/java.base/share/classes/java/text/ChoiceFormat.java line 342:
>
>> 340: } else {
>> 341: num = Double.parseDouble(str);
>> 342: }
>
> Could use enhanced switch?
Yes, much cleaner that way.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17883#discussion_r1500969086
More information about the i18n-dev
mailing list