Browse Source

dfs: silence resource warnings in DfsBlockCacheTest

Change-Id: Ia934d8578592dc20837944d50acfb8920e260893
stable-4.9
Shawn Pearce 7 years ago
parent
commit
a1e4825c4e
  1. 2
      org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheTest.java

2
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheTest.java

@ -72,6 +72,7 @@ public class DfsBlockCacheTest {
resetCache(); resetCache();
} }
@SuppressWarnings("resource")
@Test @Test
public void streamKeyReusesBlocks() throws Exception { public void streamKeyReusesBlocks() throws Exception {
DfsRepositoryDescription repo = new DfsRepositoryDescription("test"); DfsRepositoryDescription repo = new DfsRepositoryDescription("test");
@ -98,6 +99,7 @@ public class DfsBlockCacheTest {
assertEquals(oldSize, cache.getCurrentSize()); assertEquals(oldSize, cache.getCurrentSize());
} }
@SuppressWarnings("resource")
@Test @Test
public void weirdBlockSize() throws Exception { public void weirdBlockSize() throws Exception {
DfsRepositoryDescription repo = new DfsRepositoryDescription("test"); DfsRepositoryDescription repo = new DfsRepositoryDescription("test");

Loading…
Cancel
Save