#12 Added private constructor to ThreadSafeLazyLoadedIvoryTower.

This commit is contained in:
Ilkka Seppala
2014-11-05 21:28:48 +02:00
parent ee931b0ecb
commit 862fd39d11

View File

@ -8,6 +8,9 @@ package com.iluwatar;
public class ThreadSafeLazyLoadedIvoryTower {
private static ThreadSafeLazyLoadedIvoryTower instance = null;
private ThreadSafeLazyLoadedIvoryTower() {
}
public synchronized static ThreadSafeLazyLoadedIvoryTower getInstance() {
/*