I have the following variable:
private static final long MILLIS_IN_ONE_DAY =
This is used twice in a public method as part of two
long daysPassedSinceStart = (nowMillis - start) /
If I add "long test= MILLIS_IN_ONE_DAY;" anywhere in
the code, the error goes away.
The fact that it's only used in an equation seems to be
why Checkstyle misses it. I tried a few other
possibilities: removed 'static', removed 'final', changed it
to an 'int', changed the math to '+'. None of those
corrected it, so I don't think they're the cause.