<i18n dev> RFR: 8276234: Trivially clean up locale-related code

Daniel Fuchs dfuchs at openjdk.java.net
Mon Nov 1 15:56:16 UTC 2021


On Mon, 1 Nov 2021 15:04:16 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

> Please review this PR. A comprehensive test job has been scheduled; I'll notify this thread once that job has completed.

src/java.base/share/classes/sun/util/resources/LocaleData.java line 336:

> 334:         public List<Locale> getCandidateLocales(String baseName, Locale locale) {
> 335:             // Specify only the given locale
> 336:             return List.of(locale);

Is it guaranteed that `locale` is not `null` here?

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

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


More information about the i18n-dev mailing list