Merge "Use CacheBuilder returned from CacheBuilder.removalListener(...)"
This commit is contained in:
commit
0b9d8c89ba
@ -85,7 +85,7 @@ public class DefaultCacheFactory implements MemoryCacheFactory {
|
||||
"cache", def.name(), "memoryLimit",
|
||||
def.maximumWeight()));
|
||||
|
||||
builder.removalListener(forwardingRemovalListenerFactory.create(def.name()));
|
||||
builder = builder.removalListener(forwardingRemovalListenerFactory.create(def.name()));
|
||||
|
||||
Weigher<K, V> weigher = def.weigher();
|
||||
if (weigher != null && unwrapValueHolder) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user