Author: sebb
Date: Fri May 25 14:39:38 2012
New Revision: 1342651

URL: http://svn.apache.org/viewvc?rev=1342651&view=rev
Log:
LANG-802 - LocaleUtils - unnecessary recursive call in SyncAvoid class

Modified:
    commons/proper/lang/trunk/src/changes/changes.xml
    
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/LocaleUtils.java

Modified: commons/proper/lang/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/changes/changes.xml?rev=1342651&r1=1342650&r2=1342651&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/changes/changes.xml (original)
+++ commons/proper/lang/trunk/src/changes/changes.xml Fri May 25 14:39:38 2012
@@ -22,6 +22,7 @@
   <body>
 
   <release version="3.2" date="TBA" description="Next release">
+    <action issue="LANG-802" type="fix">LocaleUtils - unnecessary recursive 
call in SyncAvoid class.</action>
     <action type="fix" issue="LANG-800">Javadoc bug in DateUtils#ceiling for 
Calendar and Object versions.</action>
     <action type="update" issue="LANG-798">Use generics in 
SerializationUtils</action>  
     <action type="fix" issue="LANG-788">SerializationUtils throws 
ClassNotFoundException when cloning primitive classes</action>

Modified: 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/LocaleUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/LocaleUtils.java?rev=1342651&r1=1342650&r2=1342651&view=diff
==============================================================================
--- 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/LocaleUtils.java
 (original)
+++ 
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/LocaleUtils.java
 Fri May 25 14:39:38 2012
@@ -290,7 +290,7 @@ public class LocaleUtils {
         static {
             List<Locale> list = new 
ArrayList<Locale>(Arrays.asList(Locale.getAvailableLocales()));  // extra safe
             AVAILABLE_LOCALE_LIST = Collections.unmodifiableList(list);
-            AVAILABLE_LOCALE_SET = Collections.unmodifiableSet(new 
HashSet<Locale>(availableLocaleList()));
+            AVAILABLE_LOCALE_SET = Collections.unmodifiableSet(new 
HashSet<Locale>(list));
         }
     }
 


Reply via email to