Remove unnecessary local variables
Change-Id: I20ee3f7258d7e98b9c57b49c21b1e2d1582f626f
This commit is contained in:

committed by
Shawn Pearce

parent
23e1a2e824
commit
bbf93f85cf
@@ -113,8 +113,7 @@ public class DefaultCacheFactory implements MemoryCacheFactory {
|
||||
|
||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||
private static <K, V> CacheBuilder<K, V> newCacheBuilder() {
|
||||
CacheBuilder builder = CacheBuilder.newBuilder();
|
||||
return builder;
|
||||
return (CacheBuilder<K, V>) CacheBuilder.newBuilder();
|
||||
}
|
||||
|
||||
private static <K, V> Weigher<K, V> unitWeight() {
|
||||
|
Reference in New Issue
Block a user