This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 311290e5e0f2b64eee7669d1d0385f78c8ff1e8e Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Wed Jun 11 15:45:47 2025 -0400 Javadoc and comments --- src/main/java/org/apache/commons/lang3/LocaleUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/LocaleUtils.java b/src/main/java/org/apache/commons/lang3/LocaleUtils.java index 1e8a51576..3d0762ea5 100644 --- a/src/main/java/org/apache/commons/lang3/LocaleUtils.java +++ b/src/main/java/org/apache/commons/lang3/LocaleUtils.java @@ -45,7 +45,7 @@ public class LocaleUtils { */ private static final class SyncAvoid { - /** Private unmodifiable list of available locales. */ + /** Private unmodifiable and sorted list of available locales. */ private static final List<Locale> AVAILABLE_LOCALE_ULIST; /** Private unmodifiable set of available locales. */ @@ -89,13 +89,13 @@ private static final class SyncAvoid { private static final ConcurrentMap<String, List<Locale>> cCountriesByLanguage = new ConcurrentHashMap<>(); /** - * Obtains an unmodifiable list of installed locales. + * Obtains an unmodifiable and sorted list of installed locales. * * <p>This method is a wrapper around {@link Locale#getAvailableLocales()}. * It is more efficient, as the JDK method must create a new array each * time it is called.</p> * - * @return the unmodifiable list of available locales + * @return the unmodifiable and sorted list of available locales */ public static List<Locale> availableLocaleList() { return SyncAvoid.AVAILABLE_LOCALE_ULIST;