We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2f2011 commit 1fa80ebCopy full SHA for 1fa80eb
singleton/src/main/java/com/iluwatar/singleton/ThreadSafeLazyLoadedIvoryTower.java
@@ -44,9 +44,9 @@ private ThreadSafeLazyLoadedIvoryTower() {
44
* The instance doesn't get created until the method is called for the first time.
45
*/
46
public static synchronized ThreadSafeLazyLoadedIvoryTower getInstance() {
47
- if (instance == null) {
48
- instance = new ThreadSafeLazyLoadedIvoryTower();
49
- }
+ if (instance == null) {
+ instance = new ThreadSafeLazyLoadedIvoryTower();
+ }
50
return instance;
51
}
52
0 commit comments