()
| 8 | } |
| 9 | |
| 10 | public static Singleton getInstance(){ |
| 11 | if(singleton == null){ |
| 12 | synchronized (Singleton.class){ |
| 13 | if(singleton == null){ |
| 14 | singleton = new Singleton(); |
| 15 | } |
| 16 | } |
| 17 | } |
| 18 | return singleton; |
| 19 | } |
| 20 | |
| 21 | public static void main(String[] args) { |
| 22 | for(int i = 0; i < 100; i++){ |
no outgoing calls
no test coverage detected