Class DurationTemporalUnit

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.time.DurationTemporalUnit
All Implemented Interfaces:
BugChecker.MethodInvocationTreeMatcher, Suppressible, Serializable

public final class DurationTemporalUnit
extends BugChecker
implements BugChecker.MethodInvocationTreeMatcher
Bans calls to Duration APIs where the TemporalUnit is not ChronoUnit.DAYS or it has an estimated duration (which is guaranteed to throw an DateTimeException).
See Also:
Serialized Form