为什么这种模式被打破了?对我来说好吗?有任何想法吗?
public static Singleton getInst() { if (instace == null) createInst(); return instace; } private static synchronized createInst() { if (instace == null) { instace = new Singleton(); } }