dfs: silence resource warnings in DfsBlockCacheTest

Change-Id: Ia934d8578592dc20837944d50acfb8920e260893
This commit is contained in:
Shawn Pearce 2017-07-19 14:59:50 -07:00
parent f414f7de1f
commit a1e4825c4e
1 changed files with 2 additions and 0 deletions

View File

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