commit
6575b3ae99
@ -53,7 +53,7 @@ public final class InitializingOnDemandHolderIdiom {
|
||||
* Provides the lazy-loaded Singleton instance.
|
||||
*/
|
||||
private static class HelperHolder {
|
||||
public static final InitializingOnDemandHolderIdiom INSTANCE =
|
||||
private static final InitializingOnDemandHolderIdiom INSTANCE =
|
||||
new InitializingOnDemandHolderIdiom();
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ public final class ThreadSafeLazyLoadedIvoryTower {
|
||||
/**
|
||||
* The instance gets created only when it is called for first time. Lazy-loading
|
||||
*/
|
||||
public static synchronized ThreadSafeLazyLoadedIvoryTower getInstance() {
|
||||
public static synchronized ThreadSafeLazyLoadedIvoryTower getInstance() {
|
||||
|
||||
if (instance == null) {
|
||||
instance = new ThreadSafeLazyLoadedIvoryTower();
|
||||
|
Loading…
x
Reference in New Issue
Block a user