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

Severity
ERROR

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 an UnsupportedTemporalTypeException.

Suppression

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