mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 12:58:37 +00:00
fix: Fix checkstyle error
This commit is contained in:
@@ -44,9 +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) {
|
||||
instance = new ThreadSafeLazyLoadedIvoryTower();
|
||||
}
|
||||
if (instance == null) {
|
||||
instance = new ThreadSafeLazyLoadedIvoryTower();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user