commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r754481 - /commons/proper/lang/branches/LANG_POST_2_4/src/java/org/apache/commons/lang/LocaleUtils.java
Date Sat, 14 Mar 2009 16:19:46 GMT
Author: sebb
Date: Sat Mar 14 16:19:46 2009
New Revision: 754481

URL: http://svn.apache.org/viewvc?rev=754481&view=rev
Log:
Access needs to be synchronized for thread safety

Modified:
    commons/proper/lang/branches/LANG_POST_2_4/src/java/org/apache/commons/lang/LocaleUtils.java

Modified: commons/proper/lang/branches/LANG_POST_2_4/src/java/org/apache/commons/lang/LocaleUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_POST_2_4/src/java/org/apache/commons/lang/LocaleUtils.java?rev=754481&r1=754480&r2=754481&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_POST_2_4/src/java/org/apache/commons/lang/LocaleUtils.java
(original)
+++ commons/proper/lang/branches/LANG_POST_2_4/src/java/org/apache/commons/lang/LocaleUtils.java
Sat Mar 14 16:19:46 2009
@@ -205,7 +205,7 @@
      *
      * @return the unmodifiable set of available locales
      */
-    public static Set availableLocaleSet() {
+    public static synchronized Set availableLocaleSet() {
         Set set = cAvailableLocaleSet;
         if (set == null) {
             set = new HashSet(availableLocaleList());



Mime
View raw message