Skip to content

Commit

Permalink
fix: Issue #2459 fixed (#2467)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkalyans committed Feb 11, 2023
1 parent c741814 commit 4e8cdc7
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,9 @@ private 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;
}
}

0 comments on commit 4e8cdc7

Please sign in to comment.