[errorprone] DirCacheEntry: suppress JavaInstantGetSecondsGetNano
We get the seconds in the line before we access nanos. See https://errorprone.info/bugpattern/JavaInstantGetSecondsGetNano Change-Id: If79690378d5b31d76b06d26e07434d3dff8c92fb
This commit is contained in:
parent
d0b9ab1c4a
commit
cda8ffdbb4
|
@ -423,6 +423,7 @@ public final boolean mightBeRacilyClean(int smudge_s, int smudge_ns) {
|
||||||
* @return true if extra careful checks should be used.
|
* @return true if extra careful checks should be used.
|
||||||
* @since 5.1.9
|
* @since 5.1.9
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("JavaInstantGetSecondsGetNano")
|
||||||
public final boolean mightBeRacilyClean(Instant smudge) {
|
public final boolean mightBeRacilyClean(Instant smudge) {
|
||||||
// If the index has a modification time then it came from disk
|
// If the index has a modification time then it came from disk
|
||||||
// and was not generated from scratch in memory. In such cases
|
// and was not generated from scratch in memory. In such cases
|
||||||
|
|
Loading…
Reference in New Issue