mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 20:14:59 +00:00
Added comments to lazily initialized singleton implementation.
This commit is contained in:
1 parent
0ad5fbfc5c
commit
34bc1de713
1 file changed
+2
@@ -3,6 +3,8 @@ package com.iluwatar;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Thread-safe Singleton class.
|
* Thread-safe Singleton class.
|
||||||
|
* The instance is lazily initialized and thus needs synchronization
|
||||||
|
* mechanism.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ThreadSafeLazyLoadedIvoryTower {
|
public class ThreadSafeLazyLoadedIvoryTower {
|
||||||
|
|||||||
Reference in new issue
Block a user