summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2018-05-22 08:34:53 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2018-05-22 09:40:54 +0900
commit1da2ff7242dfc6df4d470e8519bfd8267940791a (patch)
treec344d0f11664d75afbf4cbc3440aa2cc96b19028 /org.eclipse.jgit
parent4132dc5858f2326d25d6b5c740f62855d3f39554 (diff)
downloadjgit-1da2ff7242dfc6df4d470e8519bfd8267940791a.tar.gz
jgit-1da2ff7242dfc6df4d470e8519bfd8267940791a.zip
Repository: Deprecate getTags method
Callers should use getRefDatabase().getRefsByPrefix(R_TAGS) instead. Adjust the tests accordingly. Bug: 534731 Change-Id: Ib28ae365e42720268996ff46e34cae1745ad545c Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
index e7e2b00349..2d34736111 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
@@ -1108,7 +1108,9 @@ public abstract class Repository implements AutoCloseable {
* @return mutable map of all tags; key is short tag name ("v1.0") and value
* of the entry contains the ref with the full tag name
* ("refs/tags/v1.0").
+ * @deprecated use {@code getRefDatabase().getRefsByPrefix(R_TAGS)} instead
*/
+ @Deprecated
@NonNull
public Map<String, Ref> getTags() {
try {