Merge pull request #702 from zafarella/patch-4
Add thread safety comment on enum based singleton
This commit is contained in:
commit
33a3d6fef4
@ -24,6 +24,9 @@ package com.iluwatar.singleton;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Enum based singleton implementation. Effective Java 2nd Edition (Joshua Bloch) p. 18
|
* Enum based singleton implementation. Effective Java 2nd Edition (Joshua Bloch) p. 18
|
||||||
|
*
|
||||||
|
* This implementation is thread safe, however adding any other method and its thread safety
|
||||||
|
* is developers responsibility.
|
||||||
*/
|
*/
|
||||||
public enum EnumIvoryTower {
|
public enum EnumIvoryTower {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user