Movatterモバイル変換


[0]ホーム

URL:


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

Commit60c77e5

Browse files
committed
Added cache type params to avoid build error on jdk8
1 parent2d797fb commit60c77e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/main/java/com/caching/LRUCache.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public LRUCache(int capacity) {
3636
*
3737
* @param accessOrder - Set to true if ordering mode is specified (removeEldestEntry).
3838
*/
39-
this.cache =newLinkedHashMap<>(capacity,1.0f,true) {
39+
this.cache =newLinkedHashMap<Integer,T>(capacity,1.0f,true) {
4040
/**
4141
* @param eldest - The least recently accessed entry This is the entry that will
4242
* be removed if the method returns {@code true}.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp