We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db72d11 commit 6f3f2c9Copy full SHA for 6f3f2c9
docs/java/concurrent/java-concurrent-questions-02.md
@@ -60,7 +60,7 @@ public class Singleton {
60
private Singleton() {
61
}
62
63
- public static Singleton getUniqueInstance() {
+ public static Singleton getUniqueInstance() {
64
//先判断对象是否已经实例过,没有实例化过才进入加锁代码
65
if (uniqueInstance == null) {
66
//类对象加锁
0 commit comments