diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 9f7c0bcf7..32d9e2674 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,7 @@ + LocaleUtils - unnecessary recursive call in SyncAvoid class. Javadoc bug in DateUtils#ceiling for Calendar and Object versions. Use generics in SerializationUtils SerializationUtils throws ClassNotFoundException when cloning primitive classes diff --git a/src/main/java/org/apache/commons/lang3/LocaleUtils.java b/src/main/java/org/apache/commons/lang3/LocaleUtils.java index e13d1aa7c..7568f2c66 100644 --- a/src/main/java/org/apache/commons/lang3/LocaleUtils.java +++ b/src/main/java/org/apache/commons/lang3/LocaleUtils.java @@ -290,7 +290,7 @@ public class LocaleUtils { static { List list = new ArrayList(Arrays.asList(Locale.getAvailableLocales())); // extra safe AVAILABLE_LOCALE_LIST = Collections.unmodifiableList(list); - AVAILABLE_LOCALE_SET = Collections.unmodifiableSet(new HashSet(availableLocaleList())); + AVAILABLE_LOCALE_SET = Collections.unmodifiableSet(new HashSet(list)); } }