Class JodaConstructors

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

public final class JodaConstructors
extends BugChecker
implements BugChecker.NewClassTreeMatcher
Check for calls to bad JodaTime constructors.
  • org.joda.time.Duration#Duration(long)
  • org.joda.time.Instant#Instant()
  • org.joda.time.DateTime#DateTime()
  • org.joda.time.DateTime#DateTime(org.joda.time.Chronology)
  • org.joda.time.DateTime#DateTime(org.joda.time.DateTimeZone)
See Also:
Serialized Form