From 4c2e69797f8262cc0546131352c1c5ef6dfdc985 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Fri, 25 May 2012 14:39:38 +0000 Subject: [PATCH] LANG-802 - LocaleUtils - unnecessary recursive call in SyncAvoid class git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1342651 13f79535-47bb-0310-9956-ffa450edef68 --- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/lang3/LocaleUtils.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)); } }