TemporalAccessorGetChronoField
TemporalAccessor.get() only works for certain values of ChronoField.

Severity
ERROR
Has Fix?
NO_FIX

The problem

TemporalAccessor.get(ChronoField) only works for certain values of ChronoField. E.g., DayOfWeek only supports DAY_OF_WEEK. All other values are guaranteed to throw a UnsupportedTemporalTypeException.

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("TemporalAccessorGetChronoField") to the enclosing element.