add some references to class comments

This commit is contained in:
mortezaadi 2014-12-05 11:59:41 +03:30
parent dbc1ca7aeb
commit c06c05757e
2 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,13 @@ package com.iluwatar;
import java.io.Serializable;
/**
* The Initialize-on-demand-holder idiom is a secure way of
* creating lazy initialize singleton Object in Java.
* refer to "The CERT Oracle Secure Coding Standard for Java"
* By Dhruv Mohindra, Robert C. Seacord p.378
*
* Singleton objects usually are heavy to create and sometimes need to serialize them.
* This class also shows how to preserve singleton in Serialized version of singleton.
*
* @author mortezaadi@gmail.com
*

View File

@ -1,6 +1,10 @@
package com.iluwatar;
/**
* Double check locking
*
* http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
*
* Broken under Java 1.4.
* @author mortezaadi@gmail.com
*