Skip to content

Commit 34bc1de

Browse files
committed
Added comments to lazily initialized singleton implementation.
1 parent 0ad5fbf commit 34bc1de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/**
44
*
55
* Thread-safe Singleton class.
6+
* The instance is lazily initialized and thus needs synchronization
7+
* mechanism.
68
*
79
*/
810
public class ThreadSafeLazyLoadedIvoryTower {

0 commit comments

Comments
 (0)