summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-20 14:41:54 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-25 16:15:34 +0200
commitcda8ffdbb4600410451ea8e100f7f6cd4ab8b3f3 (patch)
tree6988462239aea8348f956f20642e512d3ae0e83f /org.eclipse.jgit
parentd0b9ab1c4af838225be36fd22479b88c184d10ca (diff)
downloadjgit-cda8ffdbb4600410451ea8e100f7f6cd4ab8b3f3.tar.gz
jgit-cda8ffdbb4600410451ea8e100f7f6cd4ab8b3f3.zip
[errorprone] DirCacheEntry: suppress JavaInstantGetSecondsGetNano
We get the seconds in the line before we access nanos. See https://errorprone.info/bugpattern/JavaInstantGetSecondsGetNano Change-Id: If79690378d5b31d76b06d26e07434d3dff8c92fb
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java
index 67edf50f44..e3c5a881d5 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEntry.java
@@ -423,6 +423,7 @@ public class DirCacheEntry {
* @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