Fix Checkstyle.
This commit is contained in:
parent
0486d069b5
commit
3e6255ec52
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue