<i18n dev> RFR: 8282319: java.util.Locale method to stream available Locales [v2]

Naoto Sato naoto at openjdk.org
Fri Feb 24 18:46:13 UTC 2023

On Fri, 24 Feb 2023 18:27:30 GMT, Justin Lu <jlu at openjdk.org> wrote:

>> This PR adds a new method to java.util.Locale which returns Stream<Locale>
>> The contents of the Stream are composed of the same underlying elements as Locale.getAvailableLocales().
>> This method allows streaming of the Locale array without creating a defensive copy.
> Justin Lu has updated the pull request incrementally with one additional commit since the last revision:
>   Doc adjustments, fix method name in test

src/java.base/share/classes/sun/util/locale/provider/LocaleServiceProviderPool.java line 153:

> 151:      * {@return a stream of the available locales for all provider classes}
> 152:      *
> 153:      * Returns a stream of available locales for all the provider classes.

This line can be removed


PR: https://git.openjdk.org/jdk/pull/12269

More information about the i18n-dev mailing list