8385885: Clarify comment in LazyConstantImpl

Reviewed-by: vklang
This commit is contained in:
Per Minborg 2026-06-04 12:54:23 +00:00
parent ee53e7569e
commit c4a3373faa

View File

@ -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")