Better lambda.
This commit is contained in:
parent
9abbb06376
commit
7c60085179
|
@ -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);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue