ICU-10383 fix synchronization per Andy.

X-SVN-Rev: 34370
This commit is contained in:
Mark Davis 2013-09-18 13:41:49 +00:00
parent bb7e154629
commit 7b164713f3

View File

@ -351,7 +351,7 @@ public class GeneralMeasureFormat extends MeasureFormat {
}
bs.set(unitIndex);
}
public static ParseData of(ULocale locale,
public static synchronized ParseData of(ULocale locale,
Map<MeasureUnit, EnumMap<FormatWidth, Map<String, PatternData>>> unitToStyleToCountToFormat) {
ParseData result = localeToParseData.get(locale);
if (result == null) {