<i18n dev> RFR: 8358426: Improve lazy computation in Locale
Naoto Sato
naoto at openjdk.org
Thu Jun 5 18:37:52 UTC 2025
On Thu, 5 Jun 2025 18:32:34 GMT, Justin Lu <jlu at openjdk.org> wrote:
>> src/java.base/share/classes/java/util/Locale.java line 2578:
>>
>>> 2576: return Set.of(LocaleISOData.ISO3166_3);
>>> 2577: }
>>> 2578: });
>>
>> What about moving these four stable suppliers and `getISO2Table` to LocaleISOData to shrink size of Locale.java?
>
> I like this suggestion, we can also move `getISO3Code` in addition to those you mentioned, and have all ISO resources and methods come from LocaleISOData. @naotoj, would you be in favor of this?
I agree, that would be more straightforward. Thanks for the suggestion!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25646#discussion_r2129770483
More information about the i18n-dev
mailing list