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 Locale actualLocale = LocaleUtils.toLocale(locale);
final ArrayKey key = new ArrayKey(pattern, actualTimeZone, actualLocale);
return cInstanceCache.computeIfAbsent(key, k -> {
return createInstance(pattern, actualTimeZone, actualLocale);
});
return cInstanceCache.computeIfAbsent(key, k -> createInstance(pattern, actualTimeZone, actualLocale));
}
/**