1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-01 16:28:03 +08:00

Update linkedhashmap-source-code.md

错别字更改
This commit is contained in:
Samsara1994 2024-09-25 14:56:25 +08:00 committed by GitHub
parent c800fc05bf
commit 9145feec50
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) {
//获取当前节点、以及前驱节点和后继节点