<i18n dev> RFR: 8336847: Use pattern match switch in NumberFormat classes

Chen Liang liach at openjdk.org
Tue Jul 23 17:53:33 UTC 2024


On Tue, 23 Jul 2024 17:28:02 GMT, Justin Lu <jlu at openjdk.org> wrote:

> As discussed in https://github.com/openjdk/jdk/pull/19513#discussion_r1684957942, there is code within java.text.NumberFormat (and subclasses) that can use the pattern match switch to improve readability.
> 
> As this is simply cleanup, there is no regression test added.

Appears to be an equivalent migration by naked eye.

-------------

Marked as reviewed by liach (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/20302#pullrequestreview-2194666920


More information about the i18n-dev mailing list