<i18n dev> RFR: JDK-8318761: MessageFormat pattern support for CompactNumberFormat, ListFormat, and DateTimeFormatter [v6]
Justin Lu
jlu at openjdk.org
Thu Feb 8 21:29:19 UTC 2024
On Thu, 8 Feb 2024 21:16:45 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Justin Lu has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Move the if-else nFmt checking to a package-private method in NumberFormat
>
> src/java.base/share/classes/java/text/MessageFormat.java line 780:
>
>> 778: }
>> 779: }
>> 780: else if (fmt != null) {
>
> This `else if` does not seem necessary
Originally this was needed to make patterns for ClassicFormat (since we could not instanceof check it due to visibility), but as ClassicFormat/DateTimeFormatter cannot be equality checked, this isn't needed. Removed, thanks for spotting.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17663#discussion_r1483609034
More information about the i18n-dev
mailing list