Skip to content
Permalink
Browse files
fix: increase visibility of #get() (#486)
  • Loading branch information
olavloite committed Oct 6, 2020
1 parent 2ad0b7f commit fa6d9641b7b2a5bb1d00de6b99b0f8bc157245d6
Showing with 1 addition and 1 deletion.
  1. +1 −1 google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractLazyInitializer.java
@@ -27,7 +27,7 @@
private volatile Exception error;

/** Returns an initialized instance of T. */
T get() throws Exception {
public T get() throws Exception {
// First check without a lock to improve performance.
if (!initialized) {
synchronized (lock) {

0 comments on commit fa6d964

Please sign in to comment.