mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-10399 Fixed a coding issue. During the initialization of MeasureUnit, it should not use a subclass Currency. Currency.CURRENCY_FACTORY is actually in MeasureUnit, so it should not be accessed through Currency.
X-SVN-Rev: 34401
This commit is contained in:
parent
8ac5d5b068
commit
886e16a276
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ public class MeasureUnit implements Comparable<MeasureUnit>, Serializable {
|
|||
ICUResourceBundle.ICU_DATA_CLASS_LOADER);
|
||||
UResourceBundle codeMap = bundle.get("codeMap");
|
||||
for (Enumeration<String> it = codeMap.getKeys(); it.hasMoreElements();) {
|
||||
MeasureUnit.addUnit("currency", it.nextElement(), Currency.CURRENCY_FACTORY);
|
||||
MeasureUnit.addUnit("currency", it.nextElement(), CURRENCY_FACTORY);
|
||||
}
|
||||
} catch (MissingResourceException e) {
|
||||
// fall through
|
||||
|
|
Loading…
Add table
Reference in a new issue