mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-04 16:13:42 +00:00
fix: Fix checkstyle error
This commit is contained in:
1 parent
c2f2011048
commit
1fa80eb74c
1 file changed
+3
-3
@@ -44,9 +44,9 @@ public final class ThreadSafeLazyLoadedIvoryTower {
|
|||||||
* The instance doesn't get created until the method is called for the first time.
|
* The instance doesn't get created until the method is called for the first time.
|
||||||
*/
|
*/
|
||||||
public static synchronized ThreadSafeLazyLoadedIvoryTower getInstance() {
|
public static synchronized ThreadSafeLazyLoadedIvoryTower getInstance() {
|
||||||
if (instance == null) {
|
if (instance == null) {
|
||||||
instance = new ThreadSafeLazyLoadedIvoryTower();
|
instance = new ThreadSafeLazyLoadedIvoryTower();
|
||||||
}
|
}
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user