]> source.dussan.org Git - jgit.git/commitdiff
[errorprone] Express duration using seconds which is clearer 52/204552/2
authorMatthias Sohn <matthias.sohn@sap.com>
Sat, 16 Sep 2023 20:35:37 +0000 (22:35 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 22 Sep 2023 21:31:28 +0000 (23:31 +0200)
[CanonicalDuration] Duration can be expressed more clearly with
different units.

see https://errorprone.info/bugpattern/CanonicalDuration

Change-Id: I7f358b5adabee1523e56b109a2c81c74ec523b74

org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java

index 3e95de14592c350c20bd9fac7c9822d93bfbcaee..92ba62fa411f96609d91ffd4d7634a9e0ad6d3dd 100644 (file)
@@ -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