Merge "Use CacheBuilder returned from CacheBuilder.removalListener(...)"

This commit is contained in:
Shawn Pearce 2013-08-22 15:38:30 +00:00 committed by Gerrit Code Review
commit 0b9d8c89ba

View File

@ -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) {