diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-12-25 23:05:42 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-12-28 20:04:07 +0100 |
commit | 300a53dd6f84a630c73754632de0b4a1651ff890 (patch) | |
tree | 6c98f0c813c5bf3cba87bf645810cc77ac5bb3ca /org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java | |
parent | 5a56be277dac6328c9aec8ada60ab89c9750b1da (diff) | |
download | jgit-300a53dd6f84a630c73754632de0b4a1651ff890.tar.gz jgit-300a53dd6f84a630c73754632de0b4a1651ff890.zip |
GarbageCollectCommand, GC: use java.time API
We are moving away from the old java.util.Date API to the
java.time API.
Add GitTimeParser#parseInstant to support this.
Change-Id: I3baeafeda5b65421dc94c1045b0ba576d4f79662
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java index 70e990dedf..d1696d62a8 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/PushCommandTest.java @@ -22,6 +22,7 @@ import java.io.IOException; import java.io.PrintStream; import java.net.URISyntaxException; import java.nio.charset.StandardCharsets; +import java.time.Instant; import java.util.Properties; import org.eclipse.jgit.api.errors.DetachedHeadException; @@ -1146,7 +1147,7 @@ public class PushCommandTest extends RepositoryTestCase { RevCommit commit2 = git2.commit().setMessage("adding a").call(); // run a gc to ensure we have a bitmap index - Properties res = git1.gc().setExpire(null).call(); + Properties res = git1.gc().setExpire((Instant) null).call(); assertEquals(8, res.size()); // create another commit so we have something else to push |