Fix Checkstyle.

This commit is contained in:
Gary Gregory 2022-03-21 11:36:01 -04:00
parent 0486d069b5
commit 3e6255ec52
2 changed files with 4 additions and 6 deletions

View File

@ -46,7 +46,7 @@ public abstract class Diff<T> extends Pair<T, T> {
/** The field type. */
private final Type type;
/** The field name. */
private final String fieldName;

View File

@ -88,10 +88,10 @@ public class FastDateParser implements DateParser, Serializable {
/** Input TimeZone. */
private final TimeZone timeZone;
/** Input Locale. */
private final Locale locale;
/**
* Century from Date.
*/
@ -666,9 +666,7 @@ public class FastDateParser implements DateParser, Serializable {
*/
private Strategy getLocaleSpecificStrategy(final int field, final Calendar definingCalendar) {
final ConcurrentMap<Locale, Strategy> cache = getCache(field);
return cache.computeIfAbsent(locale, k -> {
return field == Calendar.ZONE_OFFSET ? new TimeZoneStrategy(locale) : new CaseInsensitiveTextStrategy(field, definingCalendar, locale);
});
return cache.computeIfAbsent(locale, k -> (field == Calendar.ZONE_OFFSET ? new TimeZoneStrategy(locale) : new CaseInsensitiveTextStrategy(field, definingCalendar, locale)));
}
/**