Created
February 21, 2017 13:26
-
-
Save luksa/6ea6c953ac429292a5538b7e33ab7222 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (foo == null) { | |
synchronized (this) { | |
if (foo == null) { | |
foo = createFoo(); | |
} | |
} | |
} | |
return foo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment