Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2018-05-04 01:19:19 -0400
committerMatthias Sohn2018-05-05 19:12:36 -0400
commit5dc48274d0ef2d0e634fb0618bb5aef0bf3955dd (patch)
treeb5182cb9269b62dfc0b035767438c4e4dbb47109 /org.eclipse.egit.core.test/src
parent788e4174e4d4e04707c3de8fcdead4a00ad35e89 (diff)
downloadegit-5dc48274d0ef2d0e634fb0618bb5aef0bf3955dd.tar.gz
egit-5dc48274d0ef2d0e634fb0618bb5aef0bf3955dd.tar.xz
egit-5dc48274d0ef2d0e634fb0618bb5aef0bf3955dd.zip
Replace deprecated getRefs() calls
getRefs() was recently deprecated for a new method getRefsByPrefix() in I4c92f852e8c1558095dd460b5fd7b602c1d82df1. This change redirects the majority of calls to the new method. 12 calls have not been replaced, since they are either part of public API or they actually use the keys of the formerly returned maps. Change-Id: Ie975212e7ebe4225de920043522d8d63a9bea229 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Diffstat (limited to 'org.eclipse.egit.core.test/src')
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/RevUtilsTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/RevUtilsTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/RevUtilsTest.java
index e1f057450..6275d59cc 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/RevUtilsTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/RevUtilsTest.java
@@ -66,7 +66,8 @@ public class RevUtilsTest extends GitTestCase {
}
private boolean isContainedInAnyRemoteRef(RevCommit commit) throws IOException {
- Collection<Ref> remoteRefs = repository.getRefDatabase().getRefs(Constants.R_REMOTES).values();
+ Collection<Ref> remoteRefs = repository.getRefDatabase()
+ .getRefsByPrefix(Constants.R_REMOTES);
return RevUtils.isContainedInAnyRef(repository, commit, remoteRefs);
}

Back to the top