From 2c70d183f539b9a696e9670f5752a5829a4efbba Mon Sep 17 00:00:00 2001 From: Terry Parker Date: Thu, 22 Oct 2015 15:29:04 -0700 Subject: [PATCH] Restore TestRepository.getClock(), it is used by Gerrit/Gitiles Change-Id: I88880f18998e33377c0c684cbd8007b5d27d76e7 Signed-off-by: Terry Parker --- .../src/org/eclipse/jgit/junit/TestRepository.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java index 98e29d7083..251e65f553 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java @@ -208,6 +208,17 @@ public class TestRepository { return new Date(mockSystemReader.getCurrentTime()); } + /** + * @return current date. + * + * @deprecated Use {@link #getDate()} instead. + */ + @Deprecated + public Date getClock() { + // Remove once Gitiles and Gerrit are using the updated JGit. + return getDate(); + } + /** @return timezone used for default identities. */ public TimeZone getTimeZone() { return mockSystemReader.getTimeZone(); -- 2.39.5