单例模式,将构造方法私有

This commit is contained in:
wrui 2019-06-14 15:21:53 +08:00
parent 3496523289
commit d5ab19db28
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ public class AsyncManager
/**
* 单例模式
*/
private AsyncManager(){}
private static AsyncManager me = new AsyncManager();
public static AsyncManager me()