Skip to content

Commit

Permalink
fix: increase visibility of #get() (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Oct 6, 2020
1 parent 2ad0b7f commit fa6d964
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -27,7 +27,7 @@ public abstract class AbstractLazyInitializer<T> {
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) {
Expand Down

0 comments on commit fa6d964

Please sign in to comment.