diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-16 22:35:37 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-22 23:31:28 +0200 |
commit | 13bea495c7c21f5be7d44955636756521036fb19 (patch) | |
tree | d17dff71d4299640b94a06612b5956132ac026bd | |
parent | ec0657ba014585261d3c3c4d69cb905216c5efb5 (diff) | |
download | jgit-13bea495c7c21f5be7d44955636756521036fb19.tar.gz jgit-13bea495c7c21f5be7d44955636756521036fb19.zip |
[errorprone] Express duration using seconds which is clearer
[CanonicalDuration] Duration can be expressed more clearly with
different units.
see https://errorprone.info/bugpattern/CanonicalDuration
Change-Id: I7f358b5adabee1523e56b109a2c81c74ec523b74
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java index 3e95de1459..92ba62fa41 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java @@ -205,7 +205,7 @@ public abstract class FS { * </p> */ public static final Duration FALLBACK_TIMESTAMP_RESOLUTION = Duration - .ofMillis(2000); + .ofSeconds(2); /** * Fallback FileStore attributes used when we can't measure the |