From 5a75acc2f893d2095136369ab13d04a8a0f14734 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Wed, 25 Dec 2024 01:31:27 +0100 Subject: TestRepository: add version when annotated methods became deprecated Change-Id: Ib9466bfbc3d7ecf53af88dd6b5bade7ae48c7165 --- org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'org.eclipse.jgit.junit/src') 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 706930a50f..e53dbf1bfc 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 @@ -201,7 +201,7 @@ public class TestRepository implements AutoCloseable { * @since 4.2 * @deprecated Use {@link #getInstant()} instead. */ - @Deprecated + @Deprecated(since = "7.2") public Date getDate() { return new Date(mockSystemReader.getCurrentTime()); } @@ -222,7 +222,7 @@ public class TestRepository implements AutoCloseable { * @return timezone used for default identities. * @deprecated Use {@link #getTimeZoneId()} instead. */ - @Deprecated + @Deprecated(since = "7.2") public TimeZone getTimeZone() { return mockSystemReader.getTimeZone(); } -- cgit v1.2.3