diff options
author | Elliott Hughes <enh@google.com> | 2010-01-13 16:04:22 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-01-13 16:04:22 -0800 |
commit | b64c406bd2becd117d88cef3d90d84243d6016af (patch) | |
tree | 5f5b5179738111629a79bb6dc49d071fb08a685a /icu/src | |
parent | 6974236987db8fc0517ee0c2fbe4f2ee33d249b7 (diff) | |
parent | aba52f92911e0faa4ae1907becc5a66cdb3254de (diff) | |
download | libcore-b64c406bd2becd117d88cef3d90d84243d6016af.zip libcore-b64c406bd2becd117d88cef3d90d84243d6016af.tar.gz libcore-b64c406bd2becd117d88cef3d90d84243d6016af.tar.bz2 |
Merge "Remove the last bits of the ICU ResourceBundle hack."
Diffstat (limited to 'icu/src')
-rw-r--r-- | icu/src/main/java/com/ibm/icu4jni/util/Resources.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/icu/src/main/java/com/ibm/icu4jni/util/Resources.java b/icu/src/main/java/com/ibm/icu4jni/util/Resources.java index efc55d1..f1c50e3 100644 --- a/icu/src/main/java/com/ibm/icu4jni/util/Resources.java +++ b/icu/src/main/java/com/ibm/icu4jni/util/Resources.java @@ -91,17 +91,6 @@ public class Resources { return result; } - // TODO: fix remaining caller and remove this. - public static ResourceBundle getInstance(String bundleName, String locale) { - if (locale == null) { - locale = Locale.getDefault().toString(); - } - if (bundleName.startsWith("Currency")) { - return new CurrencyResourceBundle(locale); - } - throw new AssertionError("bundle="+bundleName+" locale="+locale); - } - /** * Returns an array of ISO language names (two-letter codes), fetched either * from ICU's database or from our memory cache. @@ -275,36 +264,6 @@ public class Resources { return result; } - // --- Specialized ResourceBundle subclasses ------------------------------ - - /** - * Internal ResourceBundle mimicking the Harmony "Currency_*" bundles. Keys - * are the three-letter ISO currency codes. Values are the printable - * currency names in terms of the specified locale. An example entry is - * "USD"->"$" (for inside the US) and "USD->"US$" (for outside the US). - */ - private static final class CurrencyResourceBundle extends ResourceBundle { - - private String locale; - - public CurrencyResourceBundle(String locale) { - super(); - this.locale = locale; - } - - @Override - public Enumeration<String> getKeys() { - // Won't get used - throw new UnsupportedOperationException(); - } - - @Override - protected Object handleGetObject(String key) { - return getCurrencySymbolNative(locale, key); - } - - } - // --- Native methods accessing ICU's database ---------------------------- public static native String getDisplayCountryNative(String countryCode, String locale); |