The Date API is full of
major design flaws and pitfalls
and should be avoided at all costs. Prefer the java.time APIs, specifically,
java.time.Instant (for physical time) and java.time.LocalDate[Time] (for
civil time).
Suppress false positives by adding the suppression annotation @SuppressWarnings("JavaUtilDate") to the enclosing element.