Skip to content

Commit 5cdd56e

Browse files
authored
Update java-collection-questions-02.md
1 parent a2f49a7 commit 5cdd56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/collection/java-collection-questions-02.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ JDK1.8 的 `ConcurrentHashMap` 不再是 **Segment 数组 + HashEntry 数组 +
276276

277277
**`ConcurrentHashMap` 是由 `Segment` 数组结构和 `HashEntry` 数组结构组成**
278278

279-
Segment 实现了 `ReentrantLock`,所以 `Segment` 是一种可重入锁,扮演锁的角色。`HashEntry` 用于存储键值对数据。
279+
Segment 继承了 `ReentrantLock`,所以 `Segment` 是一种可重入锁,扮演锁的角色。`HashEntry` 用于存储键值对数据。
280280

281281
```java
282282
static class Segment<K,V> extends ReentrantLock implements Serializable {

0 commit comments

Comments
 (0)