DateChecker |
Warns against suspect looking calls to Date APIs.
|
DurationFrom |
Bans calls to Duration.from(temporalAmount) where temporalAmount is a Period .
|
DurationGetTemporalUnit |
Bans calls to Duration.get(temporalUnit) where temporalUnit is not
SECONDS or NANOS .
|
DurationTemporalUnit |
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 ).
|
DurationToLongTimeUnit |
Reports an error when a Duration or Instant is incorrectly decomposed in order to call an API
which accepts a <long, TimeUnit> pair.
|
FromTemporalAccessor |
Bans calls to javaTimeType.from(temporalAmount) where the call is guaranteed to either:
throw a DateTimeException at runtime (e.g., LocalDate.from(month) )
return the same parameter (e.g., Instant.from(instant) )
|
InstantTemporalUnit |
Bans calls to Instant APIs where the TemporalUnit is not one
of: NANOS , MICROS , MILLIS , SECONDS , MINUTES ,
HOURS , HALF_DAYS , or DAYS .
|
InvalidJavaTimeConstant |
This checker errors on calls to java.time methods using values that are guaranteed to
throw a DateTimeException .
|
JavaDurationGetSecondsGetNano |
This checker warns about calls to duration.getNano() without a corresponding "nearby"
call to duration.getSeconds() .
|
JavaDurationWithNanos |
Check for calls to duration.withNanos(int) .
|
JavaDurationWithSeconds |
Check for calls to duration.withSeconds(long) .
|
JavaInstantGetSecondsGetNano |
This checker warns about calls to instant.getNano() without a corresponding "nearby" call
to instant.getEpochSecond() .
|
JavaLocalDateTimeGetNano |
|
JavaLocalTimeGetNano |
|
JavaPeriodGetDays |
This checker warns about calls to period.getDays() without a corresponding "nearby" call
to period.getYears(), period.getMonths(), or period.getTotalMonths() .
|
JavaTimeDefaultTimeZone |
Check for calls to java.time APIs that silently use the default system time-zone.
|
JodaConstructors |
Check for calls to bad JodaTime constructors.
|
JodaDateTimeConstants |
Checks for usages of dangerous DateTimeConstants constants.
|
JodaDurationWithMillis |
Check for calls to duration.withMillis(long) .
|
JodaInstantWithMillis |
Check for calls to instant.withMillis(long) .
|
JodaNewPeriod |
Match possibly incorrect use of Period to obtain a number of (e.g.) days between two dates.
|
JodaPlusMinusLong |
Check for calls to JodaTime's type.plus(long) and type.minus(long) where
<type> = {Duration,Instant,DateTime,DateMidnight} .
|
JodaTimeConverterManager |
Ban usage of Joda's ConverterManager .
|
JodaToSelf |
Check for calls to Joda-Time's foo.toFoo() and new Foo(foo) .
|
JodaWithDurationAddedLong |
Check for calls to JodaTime's type.withDurationAdded(long, int) where <type> =
{Duration,Instant,DateTime} .
|
LocalDateTemporalAmount |
Bans calls to LocalDate.plus(TemporalAmount) and LocalDate.minus(TemporalAmount)
where the TemporalAmount is a non-zero Duration .
|
NearbyCallers |
Utility class to find calls "nearby" other calls.
|
PeriodFrom |
Bans calls to Period.from(temporalAmount) where temporalAmount is a Duration .
|
PeriodGetTemporalUnit |
Bans calls to Period.get(temporalUnit) where temporalUnit is not YEARS ,
MONTHS , or DAYS .
|
PeriodTimeMath |
Bans calls to Period#plus/minus(TemporalAmount) where the argument is a Duration.
|
PreferJavaTimeOverload |
This check suggests the use of java.time -based APIs, when available.
|
ProtoDurationGetSecondsGetNano |
This checker warns about accessing the underlying nanosecond-adjustment field of a duration
without a "nearby" access of the underlying seconds field.
|
ProtoTimestampGetSecondsGetNano |
This checker warns about accessing the underlying nanosecond-adjustment field of a protobuf
timestamp without a "nearby" access of the underlying seconds field.
|
StronglyTypeTime |
Flags fields which would be better expressed as time types rather than primitive integers.
|
TemporalAccessorGetChronoField |
Bans calls to TemporalAccessor.get(ChronoField) where the implementation is guaranteed to
throw an UnsupportedTemporalTypeException .
|
TimeUnitConversionChecker |
Check for problematic or suspicious TimeUnit conversion calls.
|
TimeUnitMismatch |
Checker that detects likely time-unit mismatches by looking at identifier names.
|
ZoneIdOfZ |
|