diff --git a/src/main/java/com/caching/LRUCache.java b/src/main/java/com/caching/LRUCache.java index 88e66efb..034d7881 100644 --- a/src/main/java/com/caching/LRUCache.java +++ b/src/main/java/com/caching/LRUCache.java @@ -36,7 +36,7 @@ public class LRUCache { * * @param accessOrder - Set to true if ordering mode is specified (removeEldestEntry). */ - this.cache = new LinkedHashMap<>(capacity, 1.0f, true) { + this.cache = new LinkedHashMap(capacity, 1.0f, true) { /** * @param eldest - The least recently accessed entry This is the entry that will * be removed if the method returns {@code true}.