Skip to content

Commit 1db59d5

Browse files
committed
Inline single use local variable
1 parent efe8943 commit 1db59d5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/org/apache/commons/lang3/time/FastDateParser.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,7 @@ public Locale getLocale() {
901901
* @return a TextStrategy for the field and Locale
902902
*/
903903
private Strategy getLocaleSpecificStrategy(final int field, final Calendar definingCalendar) {
904-
final ConcurrentMap<Locale, Strategy> cache = getCache(field);
905-
return cache.computeIfAbsent(locale,
904+
return getCache(field).computeIfAbsent(locale,
906905
k -> field == Calendar.ZONE_OFFSET ? new TimeZoneStrategy(locale) : new CaseInsensitiveTextStrategy(field, definingCalendar, locale));
907906
}
908907

0 commit comments

Comments
 (0)