diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheTest.java index 43f13ee5e..2e3ee4526 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheTest.java @@ -72,6 +72,7 @@ public class DfsBlockCacheTest { resetCache(); } + @SuppressWarnings("resource") @Test public void streamKeyReusesBlocks() throws Exception { DfsRepositoryDescription repo = new DfsRepositoryDescription("test"); @@ -98,6 +99,7 @@ public class DfsBlockCacheTest { assertEquals(oldSize, cache.getCurrentSize()); } + @SuppressWarnings("resource") @Test public void weirdBlockSize() throws Exception { DfsRepositoryDescription repo = new DfsRepositoryDescription("test");