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

Justin Lu jlu at openjdk.org
Wed Jul 24 19:45:45 UTC 2024


> 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. (Tiers 1-3 and java_text JCK ran to ensure clean migration).

Justin Lu has updated the pull request incrementally with one additional commit since the last revision:

  reflect review comment

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20302/files
  - new: https://git.openjdk.org/jdk/pull/20302/files/7799b0a6..e9f24bc4

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20302&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20302&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/20302.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20302/head:pull/20302

PR: https://git.openjdk.org/jdk/pull/20302


More information about the i18n-dev mailing list