Skip to content

Commit a9b2392

Browse files
添加单例模式注释。
1 parent 4fe290e commit a9b2392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/singleton/Singleton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private Singleton(){
1313

1414
/**
1515
* 使用双重检查锁,保证线程安全。
16-
* static修饰为静态变量,可以直接
16+
* static修饰为静态变量,可以直接通过类名调用。
1717
*/
1818
public static Singleton getSingleton() {
1919
if(singleton==null) {

0 commit comments

Comments
 (0)