RFR: 8287340: Refactor old code using StringTokenizer in locale related code
Iris Clark
iris at openjdk.java.net
Tue May 31 20:09:33 UTC 2022
On Tue, 31 May 2022 17:46:18 GMT, Naoto Sato <naoto at openjdk.org> wrote:
> 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.
Very nice code moderization.
-------------
Marked as reviewed by iris (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/8960
More information about the core-libs-dev
mailing list