Skip to content

Commit 72f9128

Browse files
authored
Update java-concurrent-questions-02.md
1 parent 2a0057a commit 72f9128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ JDK 提供的所有现成的 `Lock` 实现类,包括 `synchronized` 关键字
515515
在下面的代码中,`method1()``method2()`都被 `synchronized` 关键字修饰,`method1()`调用了`method2()`
516516

517517
```java
518-
public class ReentrantLockDemo {
518+
public class SynchronizedDemo {
519519
public synchronized void method1() {
520520
System.out.println("方法1");
521521
method2();

0 commit comments

Comments
 (0)