We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 974a350 commit 1491ba2Copy full SHA for 1491ba2
src/main/java/com/crossoverjie/actual/LRUMap.java
@@ -37,8 +37,11 @@ private void addNode(K key,V value){
37
tailer.next.tail = null ;
38
tailer.next = null ;
39
nodeCount -- ;
40
+
41
+ //写入表头
42
+ Node<K,V> node = new Node<>(key,value) ;
43
+ header.next = node ;
44
}else {
- Node node = new Node(key,value) ;
45
46
}
47
0 commit comments