diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2018-04-25 01:44:43 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2018-04-25 03:28:51 +0200 |
commit | 9edf9bf2d6fd248daf2157bc8245142e5d51f7c2 (patch) | |
tree | bde5d20cc6858d47587afd8594ddf8c77675dde1 /org.eclipse.jgit.test | |
parent | f26d6558f865cb6a64d0996c534a858310e8b9bb (diff) | |
download | jgit-9edf9bf2d6fd248daf2157bc8245142e5d51f7c2.tar.gz jgit-9edf9bf2d6fd248daf2157bc8245142e5d51f7c2.zip |
Remove trivial cases of using deprecated RefDatabase.getRefs()
Change-Id: I2d3e426a3391923f8a690ac68fcc33851f3eb419
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java index fefccf314f..5a2bd9c333 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java @@ -1271,7 +1271,7 @@ public class RefDirectoryTest extends LocalDiskRepositoryTestCase { @Override public void onRefsChanged(RefsChangedEvent event) { try { - refDb.getRefs("ref"); + refDb.getRefsByPrefix("ref"); changeCount.incrementAndGet(); } catch (StackOverflowError soe) { error.set(soe); @@ -1280,8 +1280,8 @@ public class RefDirectoryTest extends LocalDiskRepositoryTestCase { } } }); - refDb.getRefs("ref"); - refDb.getRefs("ref"); + refDb.getRefsByPrefix("ref"); + refDb.getRefsByPrefix("ref"); assertNull(error.get()); assertNull(exception.get()); assertEquals(1, changeCount.get()); |