From: Terry Parker Date: Thu, 22 Oct 2015 22:29:04 +0000 (-0700) Subject: Restore TestRepository.getClock(), it is used by Gerrit/Gitiles X-Git-Tag: v4.2.0.201511101648-m1~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2c70d183f539b9a696e9670f5752a5829a4efbba;p=jgit.git Restore TestRepository.getClock(), it is used by Gerrit/Gitiles Change-Id: I88880f18998e33377c0c684cbd8007b5d27d76e7 Signed-off-by: Terry Parker --- 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();