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
The following commit(s) were added to refs/heads/master by this push:
new 1db59d54a Inline single use local variable
1db59d54a is described below
commit 1db59d54a7863943014c3d6ed12f17e88f5d05a3
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jan 18 09:50:56 2026 -0500
Inline single use local variable
---
src/main/java/org/apache/commons/lang3/time/FastDateParser.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
index b2a12157f..02da1a4a0 100644
--- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
+++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java
@@ -901,8 +901,7 @@ public Locale getLocale() {
* @return a TextStrategy for the field and Locale
*/
private Strategy getLocaleSpecificStrategy(final int field, final Calendar
definingCalendar) {
- final ConcurrentMap<Locale, Strategy> cache = getCache(field);
- return cache.computeIfAbsent(locale,
+ return getCache(field).computeIfAbsent(locale,
k -> field == Calendar.ZONE_OFFSET ? new
TimeZoneStrategy(locale) : new CaseInsensitiveTextStrategy(field,
definingCalendar, locale));
}