Skip to content

Commit 862fd39

Browse files
committed
iluwatar#12 Added private constructor to ThreadSafeLazyLoadedIvoryTower.
1 parent ee931b0 commit 862fd39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

singleton/src/main/java/com/iluwatar/ThreadSafeLazyLoadedIvoryTower.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
public class ThreadSafeLazyLoadedIvoryTower {
99

1010
private static ThreadSafeLazyLoadedIvoryTower instance = null;
11+
12+
private ThreadSafeLazyLoadedIvoryTower() {
13+
}
1114

1215
public synchronized static ThreadSafeLazyLoadedIvoryTower getInstance() {
1316
/*

0 commit comments

Comments
 (0)