Skip to content

Commit

Permalink
Merge pull request #2393 from JosephConrad2017/main
Browse files Browse the repository at this point in the history
Update java-collection-questions-02.md
  • Loading branch information
Snailclimb committed May 17, 2024
2 parents ff1db4d + f87f16a commit 7a31e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/collection/java-collection-questions-02.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ for (int binCount = 0; ; ++binCount) {
// 遍历到链表最后一个节点
if ((e = p.next) == null) {
p.next = newNode(hash, key, value, null);
// 如果链表元素个数大于等于TREEIFY_THRESHOLD(8)
// 如果链表元素个数大于TREEIFY_THRESHOLD(8)
if (binCount >= TREEIFY_THRESHOLD - 1) // -1 for 1st
// 红黑树转换(并不会直接转换成红黑树)
treeifyBin(tab, hash);
Expand Down

0 comments on commit 7a31e22

Please sign in to comment.