mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 08:58:26 +00:00
refactor: sanitize javadoc
This commit is contained in:
@@ -33,7 +33,6 @@ package com.iluwatar.singleton;
|
||||
* yet, it won't be loaded into memory, and no memory will be allocated for
|
||||
* a static instance. This makes the singleton instance lazy-loaded and thread-safe.</p>
|
||||
*
|
||||
* @author owen.leung2@gmail.com
|
||||
*/
|
||||
public final class BillPughImplementation {
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ package com.iluwatar.singleton;
|
||||
*
|
||||
* <p>Broken under Java 1.4.</p>
|
||||
*
|
||||
* @author mortezaadi@gmail.com
|
||||
*/
|
||||
public final class ThreadSafeDoubleCheckLocking {
|
||||
/**
|
||||
|
||||
@@ -25,9 +25,8 @@
|
||||
package com.iluwatar.singleton;
|
||||
|
||||
/**
|
||||
* Date: 06/18/23 - 16:29 PM.
|
||||
* BillPughImplementationTest
|
||||
*
|
||||
* @author Owen Leung
|
||||
*/
|
||||
public class BillPughImplementationTest
|
||||
extends SingletonTest<BillPughImplementation>{
|
||||
|
||||
@@ -25,9 +25,8 @@
|
||||
package com.iluwatar.singleton;
|
||||
|
||||
/**
|
||||
* Date: 12/29/15 - 19:20 PM.
|
||||
* EnumIvoryTowerTest
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
class EnumIvoryTowerTest extends SingletonTest<EnumIvoryTower> {
|
||||
|
||||
|
||||
+1
-2
@@ -25,9 +25,8 @@
|
||||
package com.iluwatar.singleton;
|
||||
|
||||
/**
|
||||
* Date: 12/29/15 - 19:22 PM.
|
||||
* InitializingOnDemandHolderIdiomTest
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
class InitializingOnDemandHolderIdiomTest
|
||||
extends SingletonTest<InitializingOnDemandHolderIdiom> {
|
||||
|
||||
@@ -25,9 +25,8 @@
|
||||
package com.iluwatar.singleton;
|
||||
|
||||
/**
|
||||
* Date: 12/29/15 - 19:23 PM.
|
||||
* IvoryTowerTest
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
class IvoryTowerTest extends SingletonTest<IvoryTower> {
|
||||
|
||||
|
||||
@@ -44,11 +44,7 @@ import org.junit.jupiter.api.Test;
|
||||
* 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.</p>
|
||||
*
|
||||
* <p>Date: 12/29/15 - 19:25 PM</p>
|
||||
*
|
||||
* @param <S> Supplier method generating singletons
|
||||
* @author Jeroen Meulemeester
|
||||
* @author Richard Jones
|
||||
*/
|
||||
abstract class SingletonTest<S> {
|
||||
|
||||
|
||||
+1
-2
@@ -30,9 +30,8 @@ import java.lang.reflect.InvocationTargetException;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* Date: 12/29/15 - 19:26 PM.
|
||||
* ThreadSafeDoubleCheckLockingTest
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
class ThreadSafeDoubleCheckLockingTest extends SingletonTest<ThreadSafeDoubleCheckLocking> {
|
||||
|
||||
|
||||
+1
-2
@@ -25,9 +25,8 @@
|
||||
package com.iluwatar.singleton;
|
||||
|
||||
/**
|
||||
* Date: 12/29/15 - 19:26 PM.
|
||||
* ThreadSafeLazyLoadedIvoryTowerTest
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
class ThreadSafeLazyLoadedIvoryTowerTest
|
||||
extends SingletonTest<ThreadSafeLazyLoadedIvoryTower> {
|
||||
|
||||
Reference in New Issue
Block a user