1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

去除空格,优化格式

This commit is contained in:
Wenweigood 2025-05-13 19:44:03 +08:00 committed by GitHub
parent db72d110ff
commit 6f3f2c90fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ public class Singleton {
private Singleton() { private Singleton() {
} }
public static Singleton getUniqueInstance() { public static Singleton getUniqueInstance() {
//先判断对象是否已经实例过,没有实例化过才进入加锁代码 //先判断对象是否已经实例过,没有实例化过才进入加锁代码
if (uniqueInstance == null) { if (uniqueInstance == null) {
//类对象加锁 //类对象加锁