|
|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|