Skip to content

Commit b2d6720

Browse files
author
Udit Agarwal
committed
Add expliciti types
1 parent 647a9e6 commit b2d6720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/uditagarwal/cache/factories/CacheFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
public class CacheFactory<Key, Value> {
88

99
public Cache<Key, Value> defaultCache() {
10-
return new Cache<>(new LRUEvictionPolicy<>(), new HashMapBasedStorage<>());
10+
return new Cache<Key, Value>(new LRUEvictionPolicy<Key>(), new HashMapBasedStorage<Key, Value>());
1111
}
1212
}

0 commit comments

Comments
 (0)