From 5b3a479e5043e80a604c3be691535c85960373c9 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Thu, 25 Sep 2008 02:49:27 +0000 Subject: [PATCH] ICU-6536 Mark @internal to the method temporally added for ICU-to-LDML tool. X-SVN-Rev: 24639 --- .../src/com/ibm/icu/util/UResourceBundle.java | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/icu4j/src/com/ibm/icu/util/UResourceBundle.java b/icu4j/src/com/ibm/icu/util/UResourceBundle.java index fbbe7dae58b..243b047e3b5 100644 --- a/icu4j/src/com/ibm/icu/util/UResourceBundle.java +++ b/icu4j/src/com/ibm/icu/util/UResourceBundle.java @@ -306,19 +306,23 @@ public abstract class UResourceBundle extends ResourceBundle{ // Cache for ResourceBundle instantiation private static ICUCache BUNDLE_CACHE = new SimpleCache(); - /* - * A HACK!!!!! - * Currently if a resourcebundle with fallback turned ON is added to the cache - * and then a getBundleInstance() is called for a bundle with fallback turned OFF - * it will actually search the cache for any bundle of the same locale - * regaurdless of fallback status. This method has been created so that if - * The calling method KNOWS that instances of the other fallback state may be in the - * cache, the calling method may call this method to clear out the cache. + /** + * @internal */ public static void resetBundleCache() { - //TODO figure a way around this method(see method comment) - BUNDLE_CACHE = new SimpleCache(); + /* + * A HACK!!!!! + * Currently if a resourcebundle with fallback turned ON is added to the cache + * and then a getBundleInstance() is called for a bundle with fallback turned OFF + * it will actually search the cache for any bundle of the same locale + * regaurdless of fallback status. This method has been created so that if + * The calling method KNOWS that instances of the other fallback state may be in the + * cache, the calling method may call this method to clear out the cache. + * + */ + //TODO figure a way around this method(see method comment) + BUNDLE_CACHE = new SimpleCache(); } private static void addToCache(ResourceCacheKey key, UResourceBundle b) {