mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-4767 fix getBundleInstance
X-SVN-Rev: 18724
This commit is contained in:
parent
ae5c9c6787
commit
c6e82ed00f
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ public class Currency extends MeasureUnit implements Serializable {
|
|||
if (variant.equals("PREEURO") || variant.equals("EURO")) {
|
||||
country = country + '_' + variant;
|
||||
}
|
||||
ICUResourceBundle bundle = (ICUResourceBundle) ICUResourceBundle.createBundle(ICUResourceBundle.ICU_BASE_NAME,"CurrencyData", ICUResourceBundle.ICU_DATA_CLASS_LOADER);
|
||||
ICUResourceBundle bundle = (ICUResourceBundle) ICUResourceBundle.getBundleInstance(ICUResourceBundle.ICU_BASE_NAME,"CurrencyData", ICUResourceBundle.ICU_DATA_CLASS_LOADER);
|
||||
if(bundle==null){
|
||||
//throw new MissingResourceException()
|
||||
}
|
||||
|
@ -621,7 +621,7 @@ public class Currency extends MeasureUnit implements Serializable {
|
|||
// Get CurrencyMeta resource out of root locale file. [This may
|
||||
// move out of the root locale file later; if it does, update this
|
||||
// code.]
|
||||
ICUResourceBundle root = ICUResourceBundle.createBundle(ICUResourceBundle.ICU_BASE_NAME,"CurrencyData", ICUResourceBundle.ICU_DATA_CLASS_LOADER);
|
||||
ICUResourceBundle root = (ICUResourceBundle)ICUResourceBundle.getBundleInstance(ICUResourceBundle.ICU_BASE_NAME,"CurrencyData", ICUResourceBundle.ICU_DATA_CLASS_LOADER);
|
||||
ICUResourceBundle currencyMeta = root.get("CurrencyMeta");
|
||||
|
||||
//Integer[] i = null;
|
||||
|
|
Loading…
Add table
Reference in a new issue