We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 84914c8 + dd3b2d2 commit dcdd17dCopy full SHA for dcdd17d
src/main/java/com/caching/LRUCache.java
@@ -36,7 +36,7 @@ public LRUCache(int capacity) {
36
*
37
* @param accessOrder - Set to true if ordering mode is specified (removeEldestEntry).
38
*/
39
- this.cache = new LinkedHashMap<>(capacity, 1.0f, true) {
+ this.cache = new LinkedHashMap<Integer, T>(capacity, 1.0f, true) {
40
/**
41
* @param eldest - The least recently accessed entry This is the entry that will
42
* be removed if the method returns {@code true}.
0 commit comments