<i18n dev> RFR: JDK-8282625 Formatter caches Locale/DecimalFormatSymbols poorly [v3]

Jim Laskey jlaskey at openjdk.java.net
Mon Mar 7 13:08:10 UTC 2022


On Fri, 4 Mar 2022 19:02:29 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> Jim Laskey has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Too many 'the'
>
> src/java.base/share/classes/java/util/Formatter.java line 2026:
> 
>> 2024:     // Caching zero.
>> 2025:     static char getZero(Locale locale) {
>> 2026:         return locale == null ? '0' : getDecimalFormatSymbols(locale).getZeroDigit();
> 
> While we are at it, it would be beneficial to cache locale-dependent grouping and decimal separators too.

Noted

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

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


More information about the i18n-dev mailing list