fix: Issue #2459 fixed (#2467)

This commit is contained in:
Bharath Kalyan S
2023-02-11 22:31:32 +05:30
committed by GitHub
parent c741814b36
commit 4e8cdc7c96
@@ -44,13 +44,9 @@ public final class ThreadSafeLazyLoadedIvoryTower {
* The instance doesn't get created until the method is called for the first time.
*/
public static synchronized ThreadSafeLazyLoadedIvoryTower getInstance() {
if (instance == null) {
synchronized (ThreadSafeLazyLoadedIvoryTower.class) {
if (instance == null) {
if (instance == null) {
instance = new ThreadSafeLazyLoadedIvoryTower();
}
}
}
return instance;
}
}