diff --git a/src/main/java/org/apache/commons/lang3/time/FormatCache.java b/src/main/java/org/apache/commons/lang3/time/FormatCache.java index 92defb284..e97d98256 100644 --- a/src/main/java/org/apache/commons/lang3/time/FormatCache.java +++ b/src/main/java/org/apache/commons/lang3/time/FormatCache.java @@ -74,9 +74,7 @@ abstract class FormatCache { 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)); } /**