Class DurationGetTemporalUnit

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

public final class DurationGetTemporalUnit
extends BugChecker
implements BugChecker.MethodInvocationTreeMatcher
Bans calls to Duration.get(temporalUnit) where temporalUnit is not SECONDS or NANOS.
See Also:
Serialized Form