Merge pull request #702 from zafarella/patch-4

Add thread safety comment on enum based singleton
This commit is contained in:
Ilkka Seppälä 2018-01-23 23:24:39 +02:00 committed by GitHub
commit 33a3d6fef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,9 @@ package com.iluwatar.singleton;
/**
* 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 {