Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /