Skip to content

Commit

Permalink
[CALCITE-6728] Introduce new methods to lookup tables and schemas ins…
Browse files Browse the repository at this point in the history
…ide schemas
  • Loading branch information
kramerul committed Dec 19, 2024
1 parent b9e948d commit 45f68c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/apache/calcite/util/LazyReference.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ public T getOrCompute(Supplier<T> supplier) {
return result;
}
T computed = supplier.get();
if (value.compareAndSet(null, computed)) {
if (value.compareAndSet((T) null, computed)) {
return computed;
}
}
}

public void reset() {
value.set(null);
value.set((T) null);
}
}

0 comments on commit 45f68c0

Please sign in to comment.