mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-06 10:42:45 +00:00
8385885: Clarify comment in LazyConstantImpl
Reviewed-by: vklang
This commit is contained in:
parent
ee53e7569e
commit
c4a3373faa
@ -92,7 +92,7 @@ public final class LazyConstantImpl<T> implements LazyConstant<T> {
|
||||
T t = getAcquire();
|
||||
if (t == null) {
|
||||
final Object cf = computingFunctionOrExceptionType;
|
||||
// Don't use pattern matching here in order to improve startup time.
|
||||
// Don't use switch pattern matching here in order to improve startup time.
|
||||
if (cf instanceof Supplier<?> computingFunction) {
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user