Skip to content

Commit 0ad5fbf

Browse files
committed
Added comment to eagerly initialized singleton implementation.
1 parent baf177a commit 0ad5fbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/**
44
*
55
* Singleton class.
6+
* Eagerly initialized static instance guarantees thread
7+
* safety.
68
*
79
*/
810
public class IvoryTower {

0 commit comments

Comments
 (0)