You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/03/14 17:19:46 UTC
svn commit: r754481 -
/commons/proper/lang/branches/LANG_POST_2_4/src/java/org/apache/commons/lang/LocaleUtils.java
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());