<i18n dev> RFR: 8287340: Refactor old code using StringTokenizer in locale related code [v2]

Naoto Sato naoto at openjdk.java.net
Wed Jun 1 16:34:44 UTC 2022

> Refactoring some old code in locale providers. The test case data have also been modified due to:
> - There's a bug in `LocaleProviderAdapter.toLocaleArray()` where it did not handle the case for `no-NO-NY`.
> - `Locale.toLanguageTag()` won't handle legacy Java locales, e.g., `ja_JP_JP` and falls back, so comparing locales using language tags does not work for those locales. Changed to compare with `Locale.toString()` instead.

Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:

  Removed unnecessary clone() call


  - all: https://git.openjdk.java.net/jdk/pull/8960/files
  - new: https://git.openjdk.java.net/jdk/pull/8960/files/6b1169e2..d1b00f10

 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8960&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8960&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8960.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8960/head:pull/8960

PR: https://git.openjdk.java.net/jdk/pull/8960

More information about the i18n-dev mailing list