mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 20:14:59 +00:00
Added comment to eagerly initialized singleton implementation.
This commit is contained in:
1 parent
baf177a81e
commit
0ad5fbfc5c
1 file changed
+2
@@ -3,6 +3,8 @@ package com.iluwatar;
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Singleton class.
|
* Singleton class.
|
||||||
|
* Eagerly initialized static instance guarantees thread
|
||||||
|
* safety.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class IvoryTower {
|
public class IvoryTower {
|
||||||
|
|||||||
Reference in new issue
Block a user