1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-07-28 12:22:17 +08:00

Merge 9145feec500431d516138b6dcf94c0d2b2d9906e into 58696c742be4e8e895450bed474ca03d6ef65083

This commit is contained in:
Samsara1994 2024-10-12 09:32:01 +08:00 committed by GitHub
commit 6a8ac9ec27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -258,7 +258,7 @@ public V get(Object key) {
```java
void afterNodeAccess(Node < K, V > e) { // move node to last
LinkedHashMap.Entry < K, V > last;
//如果accessOrder 且当前节点不链表尾节点
//如果accessOrder 且当前节点不链表尾节点
if (accessOrder && (last = tail) != e) {
//获取当前节点、以及前驱节点和后继节点