mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-6536 Mark @internal to the method temporally added for ICU-to-LDML tool.
X-SVN-Rev: 24639
This commit is contained in:
parent
a017433ed5
commit
5b3a479e50
1 changed files with 14 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue