Comments about synchronization

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@307281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2005-10-08 10:02:40 +00:00
parent 81bdeb9ff9
commit deba27893e
1 changed files with 4 additions and 4 deletions

View File

@ -232,7 +232,7 @@ public static boolean isAvailableLocale(Locale locale) {
* @return an unmodifiable List of Locale objects, never null * @return an unmodifiable List of Locale objects, never null
*/ */
public static List languagesByCountry(String countryCode) { public static List languagesByCountry(String countryCode) {
List langs = (List) cLanguagesByCountry.get(countryCode); List langs = (List) cLanguagesByCountry.get(countryCode); //syncd
if (langs == null) { if (langs == null) {
if (countryCode != null) { if (countryCode != null) {
langs = new ArrayList(); langs = new ArrayList();
@ -248,7 +248,7 @@ public static List languagesByCountry(String countryCode) {
} else { } else {
langs = Collections.EMPTY_LIST; langs = Collections.EMPTY_LIST;
} }
cLanguagesByCountry.put(countryCode, langs); cLanguagesByCountry.put(countryCode, langs); //syncd
} }
return langs; return langs;
} }
@ -264,7 +264,7 @@ public static List languagesByCountry(String countryCode) {
* @return an unmodifiable List of Locale objects, never null * @return an unmodifiable List of Locale objects, never null
*/ */
public static List countriesByLanguage(String languageCode) { public static List countriesByLanguage(String languageCode) {
List countries = (List) cCountriesByLanguage.get(languageCode); List countries = (List) cCountriesByLanguage.get(languageCode); //syncd
if (countries == null) { if (countries == null) {
if (languageCode != null) { if (languageCode != null) {
countries = new ArrayList(); countries = new ArrayList();
@ -281,7 +281,7 @@ public static List countriesByLanguage(String languageCode) {
} else { } else {
countries = Collections.EMPTY_LIST; countries = Collections.EMPTY_LIST;
} }
cCountriesByLanguage.put(languageCode, countries); cCountriesByLanguage.put(languageCode, countries); //syncd
} }
return countries; return countries;
} }