From 21ce32d650762269451994b16c5530d7283b1edf Mon Sep 17 00:00:00 2001 From: konekos <32198651+konekos@users.noreply.github.com> Date: Wed, 20 Mar 2019 23:06:08 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E4=B8=89=E5=A4=A7=E6=80=A7=E8=B4=A8?= =?UTF-8?q?=E6=80=BB=E7=BB=93=EF=BC=9A=E5=8E=9F=E5=AD=90=E6=80=A7=E3=80=81?= =?UTF-8?q?=E5=8F=AF=E8=A7=81=E6=80=A7=E4=BB=A5=E5=8F=8A=E6=9C=89=E5=BA=8F?= =?UTF-8?q?=E6=80=A7.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...73\245\345\217\212\346\234\211\345\272\217\346\200\247.md" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/07.\344\270\211\345\244\247\346\200\247\350\264\250\346\200\273\347\273\223\357\274\232\345\216\237\345\255\220\346\200\247\343\200\201\345\217\257\350\247\201\346\200\247\344\273\245\345\217\212\346\234\211\345\272\217\346\200\247/\344\270\211\345\244\247\346\200\247\350\264\250\346\200\273\347\273\223\357\274\232\345\216\237\345\255\220\346\200\247\343\200\201\345\217\257\350\247\201\346\200\247\344\273\245\345\217\212\346\234\211\345\272\217\346\200\247.md" "b/07.\344\270\211\345\244\247\346\200\247\350\264\250\346\200\273\347\273\223\357\274\232\345\216\237\345\255\220\346\200\247\343\200\201\345\217\257\350\247\201\346\200\247\344\273\245\345\217\212\346\234\211\345\272\217\346\200\247/\344\270\211\345\244\247\346\200\247\350\264\250\346\200\273\347\273\223\357\274\232\345\216\237\345\255\220\346\200\247\343\200\201\345\217\257\350\247\201\346\200\247\344\273\245\345\217\212\346\234\211\345\272\217\346\200\247.md" index 6b93924..d4f3190 100644 --- "a/07.\344\270\211\345\244\247\346\200\247\350\264\250\346\200\273\347\273\223\357\274\232\345\216\237\345\255\220\346\200\247\343\200\201\345\217\257\350\247\201\346\200\247\344\273\245\345\217\212\346\234\211\345\272\217\346\200\247/\344\270\211\345\244\247\346\200\247\350\264\250\346\200\273\347\273\223\357\274\232\345\216\237\345\255\220\346\200\247\343\200\201\345\217\257\350\247\201\346\200\247\344\273\245\345\217\212\346\234\211\345\272\217\346\200\247.md" +++ "b/07.\344\270\211\345\244\247\346\200\247\350\264\250\346\200\273\347\273\223\357\274\232\345\216\237\345\255\220\346\200\247\343\200\201\345\217\257\350\247\201\346\200\247\344\273\245\345\217\212\346\234\211\345\272\217\346\200\247/\344\270\211\345\244\247\346\200\247\350\264\250\346\200\273\347\273\223\357\274\232\345\216\237\345\255\220\346\200\247\343\200\201\345\217\257\350\247\201\346\200\247\344\273\245\345\217\212\346\234\211\345\272\217\346\200\247.md" @@ -78,7 +78,7 @@ synchronized语义表示锁在同一时刻只能由一个线程进行获取, public class Singleton { private Singleton() { } private volatile static Singleton instance; - public Singleton getInstance(){ + public static Singleton getInstance(){ if(instance==null){ synchronized (Singleton.class){ if(instance==null){ @@ -113,4 +113,4 @@ synchronized语义表示锁在同一时刻只能由一个线程进行获取, > 参考文献 《java并发编程的艺术》 -《深入理解java虚拟机》 \ No newline at end of file +《深入理解java虚拟机》