[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:
Matthias Sohn 2023-09-20 14:41:54 +02:00
parent d0b9ab1c4a
commit cda8ffdbb4
1 changed files with 1 additions and 0 deletions

View File

@ -423,6 +423,7 @@ public final boolean mightBeRacilyClean(int smudge_s, int smudge_ns) {
* @return true if extra careful checks should be used.
* @since 5.1.9
*/
@SuppressWarnings("JavaInstantGetSecondsGetNano")
public final boolean mightBeRacilyClean(Instant smudge) {
// If the index has a modification time then it came from disk
// and was not generated from scratch in memory. In such cases