Manual date/time math leads to overflows, unit mismatches, and weak typing. Prefer to use strong types (e.g., java.time.Duration
or java.time.Instant
) and their APIs to perform date/time math.
Suppress false positives by adding the suppression annotation @SuppressWarnings("JodaDateTimeConstants")
to the enclosing element.