commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject svn commit: r307281 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/LocaleUtils.java
Date Sat, 08 Oct 2005 10:02:43 GMT
Author: scolebourne
Date: Sat Oct  8 03:02:40 2005
New Revision: 307281

URL: http://svn.apache.org/viewcvs?rev=307281&view=rev
Log:
Comments about synchronization

Modified:
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/LocaleUtils.java

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/LocaleUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/LocaleUtils.java?rev=307281&r1=307280&r2=307281&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/LocaleUtils.java (original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/LocaleUtils.java Sat
Oct  8 03:02:40 2005
@@ -232,7 +232,7 @@
      * @return an unmodifiable List of Locale objects, never null
      */
     public static List languagesByCountry(String countryCode) {
-        List langs = (List) cLanguagesByCountry.get(countryCode);
+        List langs = (List) cLanguagesByCountry.get(countryCode);  //syncd
         if (langs == null) {
             if (countryCode != null) {
                 langs = new ArrayList();
@@ -248,7 +248,7 @@
             } else {
                 langs = Collections.EMPTY_LIST;
             }
-            cLanguagesByCountry.put(countryCode, langs);
+            cLanguagesByCountry.put(countryCode, langs);  //syncd
         }
         return langs;
     }
@@ -264,7 +264,7 @@
      * @return an unmodifiable List of Locale objects, never null
      */
     public static List countriesByLanguage(String languageCode) {
-        List countries = (List) cCountriesByLanguage.get(languageCode);
+        List countries = (List) cCountriesByLanguage.get(languageCode);  //syncd
         if (countries == null) {
             if (languageCode != null) {
                 countries = new ArrayList();
@@ -281,7 +281,7 @@
             } else {
                 countries = Collections.EMPTY_LIST;
             }
-            cCountriesByLanguage.put(languageCode, countries);
+            cCountriesByLanguage.put(languageCode, countries);  //syncd
         }
         return countries;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message