mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 14:17:46 +00:00
Update comment
This commit is contained in:
1 parent
64e3e1a9e8
commit
0d068a35d8
1 file changed
-1
-1
@@ -13,7 +13,6 @@ import static org.junit.Assert.assertEquals;
|
|||||||
*
|
*
|
||||||
* The first proves that multiple calls to the singleton getInstance object are the same when called in the SAME thread.
|
* The first proves that multiple calls to the singleton getInstance object are the same when called in the SAME thread.
|
||||||
* The second proves that multiple calls to the singleton getInstance object are the same when called in the DIFFERENT thread.
|
* The second proves that multiple calls to the singleton getInstance object are the same when called in the DIFFERENT thread.
|
||||||
* The third proves that there is a hole if the singleton is created reflectively
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class LazyLoadedSingletonThreadSafetyTest {
|
public class LazyLoadedSingletonThreadSafetyTest {
|
||||||
|
|||||||
Reference in new issue
Block a user