Better lambda.

This commit is contained in:
Gary Gregory 2022-04-03 10:57:04 -04:00
parent 9abbb06376
commit 7c60085179
1 changed files with 1 additions and 3 deletions

View File

@ -74,9 +74,7 @@ abstract class FormatCache<F extends Format> {
final TimeZone actualTimeZone = TimeZones.toTimeZone(timeZone); final TimeZone actualTimeZone = TimeZones.toTimeZone(timeZone);
final Locale actualLocale = LocaleUtils.toLocale(locale); final Locale actualLocale = LocaleUtils.toLocale(locale);
final ArrayKey key = new ArrayKey(pattern, actualTimeZone, actualLocale); final ArrayKey key = new ArrayKey(pattern, actualTimeZone, actualLocale);
return cInstanceCache.computeIfAbsent(key, k -> { return cInstanceCache.computeIfAbsent(key, k -> createInstance(pattern, actualTimeZone, actualLocale));
return createInstance(pattern, actualTimeZone, actualLocale);
});
} }
/** /**