调整格式

pull/26/head
AmyliaY 6 years ago
parent c7f6d7717e
commit 1706939fb7

@ -37,12 +37,12 @@ public class Singleton3 {
public static Singleton3 getInstance(){ public static Singleton3 getInstance(){
if(instance == null){ if(instance == null){
synchronized(Singleton3.class){ synchronized(Singleton3.class){
if(instance == null){ if(instance == null){
instance = new Singleton3(); instance = new Singleton3();
}
} }
} }
}
return instance; return instance;
} }
} }

Loading…
Cancel
Save