mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 11:12:23 +00:00
#12 Added private constructor to ThreadSafeLazyLoadedIvoryTower.
This commit is contained in:
1 parent
ee931b0ecb
commit
862fd39d11
1 file changed
+3
@@ -8,6 +8,9 @@ package com.iluwatar;
|
|||||||
public class ThreadSafeLazyLoadedIvoryTower {
|
public class ThreadSafeLazyLoadedIvoryTower {
|
||||||
|
|
||||||
private static ThreadSafeLazyLoadedIvoryTower instance = null;
|
private static ThreadSafeLazyLoadedIvoryTower instance = null;
|
||||||
|
|
||||||
|
private ThreadSafeLazyLoadedIvoryTower() {
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized static ThreadSafeLazyLoadedIvoryTower getInstance() {
|
public synchronized static ThreadSafeLazyLoadedIvoryTower getInstance() {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in new issue
Block a user