On Fri, 27 Jan 2023 21:48:26 GMT, Justin Lu <j...@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. This pull request has now been integrated. Changeset: 7e47d51e Author: Justin Lu <j...@openjdk.org> Committer: Naoto Sato <na...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/7e47d51e10eef7b3bead636d20ff392e7b1dd185 Stats: 116 lines in 3 files changed: 113 ins; 1 del; 2 mod 8282319: java.util.Locale method to stream available Locales Reviewed-by: stsypanov, naoto, lancea, rriggs ------------- PR: https://git.openjdk.org/jdk/pull/12269