java-patterns
java-patterns copied to clipboard
Update RightLazySingleton.java
Double-check locking makes this perform better, so we don't take on the overhead of context switching threads every time getInstance() is called.