未验证 提交 dcdd17d4 编写于 作者: ishellhub's avatar ishellhub 提交者: GitHub

Merge pull request #1433 from abhijaykumar/Development

Added LinkedHashMap cache type params to avoid build error
......@@ -36,7 +36,7 @@ public class LRUCache<T> {
*
* @param accessOrder - Set to true if ordering mode is specified (removeEldestEntry).
*/
this.cache = new LinkedHashMap<>(capacity, 1.0f, true) {
this.cache = new LinkedHashMap<Integer, T>(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}.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册