???????????????
?????Alexyz123 ???????[ 2017/3/28 16:28:20 ] ??????????????? ????????
??????Java1.5????汾??volatile???η????н??????????????????????????? volatile ?????????????????????????????????????????????????????????????????????????????????????????????????????? ??-??-?? ???? ??-??-?? ???????????е? ??-?? ????????????????????з????????????????????????? volatile ??????д?????????з??????????????????????????????“????”????????????????
??????????????????
public class Singleton{
private Singleton() {}
private static class SingletonHolder{
private static Singleton instance=new Singleton();
}
public static Singleton getInstance(){
return SingletonHolder.instance;
}
}
????????????д?????????????????????????????????JVM??????????????????????????????????????????????????????????????????????????????????????????????????????????? JDK ?汾?????????????Singleton????????????????????????????????????????getInstance()????????????SingletonHolder???????Singleton????????????????????????
??????????t?????????????????????????????????????н??????Ч?????????????????????????????????????????????????????????????????????????????
?????????????
public enum Singleton {
INSTANCE;
private Singleton() {}
public void method() {
}
}
??????Java1.5?汾????????????????ü?????????????????????Singleton.INSTANCE???????????????????????????????????????????double checked locking???????????????????л???????乥?????′????μ????????Effective Java???и????????????????????????????Singleton????????
??????????С??
???????????????????????????????????????????????????????????Android SDK??????????????????????????????е????????????????????????ж?????????????????????濼?????????????????????Ч?????????????????е??????????????Singleton??????????????Ρ?
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
???д?ò??????????????????????д?淶??α??????????????????????????????????????????????????????е?Ч?????в????г??????????????????????в?????????????в????г????????????????????????????в????е???????????????????????????????????????ж??????????????????????????????ALM(??????????????)????????????????excel????????ALM(??????????????)????????????????????????????????????????????????д????????????????????????????????????????????????????????????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????