UtilCache.utilCacheTable is a WeakHashMap.  This class is defined to
clear out entries when the *key* is only weakly referenced.  Since the
key in this case is a string, the usage really doesn't make sense.
Either the cache item will be kept forever(if the cache is configured
with a static string name, that exists in the constant pool, or with
an interned string), or will be cleared earlier, because the string is
dynamic, existing in the heap or the stack.

So, this usage makes no sense at all.

Reply via email to