<i18n dev> RFR: JDK-8282625 Formatter caches Locale/DecimalFormatSymbols poorly [v3]
Jim Laskey
jlaskey at openjdk.java.net
Mon Mar 7 13:08:08 UTC 2022
On Fri, 4 Mar 2022 21:14:26 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> As a separate/future issue, perhaps the constructors should be deprecated to nudge people to using the static `getInstance` methods.
>
> Would it be just as effective and improve performance more broadly to cache in DecimalFormatSymbols.getInstance()?
>
> Declarations should be private unless there is a package need.
> In this case, the only access to should be via the method.
Will investigate
-------------
PR: https://git.openjdk.java.net/jdk/pull/7703
More information about the i18n-dev
mailing list