This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git

commit 7c60085179b9fe2298e2a53bedf605e08de78886
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Apr 3 10:57:04 2022 -0400

    Better lambda.
---
 src/main/java/org/apache/commons/lang3/time/FormatCache.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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 92defb2..e97d982 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<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));
     }
 
     /**

Reply via email to