aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit/src
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-12-25 01:31:27 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2024-12-25 13:59:12 +0100
commit5a75acc2f893d2095136369ab13d04a8a0f14734 (patch)
tree3f2a5aee4482a6ad84c08276d2a1b1840d459645 /org.eclipse.jgit.junit/src
parentd32a770f144d3b8a87eeb811e4c8987ae9145966 (diff)
downloadjgit-5a75acc2f893d2095136369ab13d04a8a0f14734.tar.gz
jgit-5a75acc2f893d2095136369ab13d04a8a0f14734.zip
TestRepository: add version when annotated methods became deprecated
Change-Id: Ib9466bfbc3d7ecf53af88dd6b5bade7ae48c7165
Diffstat (limited to 'org.eclipse.jgit.junit/src')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java4
1 files changed, 2 insertions, 2 deletions
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<R extends Repository> 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<R extends Repository> implements AutoCloseable {
* @return timezone used for default identities.
* @deprecated Use {@link #getTimeZoneId()} instead.
*/
- @Deprecated
+ @Deprecated(since = "7.2")
public TimeZone getTimeZone() {
return mockSystemReader.getTimeZone();
}