CanonicalDuration
Duration can be expressed more clearly with different units

Category
Severity
WARNING
Maturity

The problem

Prefer to express durations using the largest possible unit, e.g. Duration.ofDays(1) instead of Duration.ofSeconds(86400).

Suppression

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