]> source.dussan.org Git - jgit.git/commitdiff
Remove ignored potentiallyUnclosedCloseable check 34/190534/3
authorFabio Ponciroli <ponch78@gmail.com>
Mon, 7 Feb 2022 18:30:01 +0000 (19:30 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 2 Mar 2022 15:32:34 +0000 (16:32 +0100)
potentiallyUnclosedCloseable currently is not checked and it creates
a warning when compiling with Maven.

Change-Id: I0715ead433270937f77f56a19aa203f8d6f5322f

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

index bacd3ba0a290d8972368c8fd61e6a009a60d28c0..ab588cb71ef6ba091d39d446df1353c32af82b8f 100644 (file)
@@ -269,7 +269,6 @@ public class DfsBlockCacheTest {
                assertEquals(1, evicted.get());
        }
 
-       @SuppressWarnings("resource")
        @Test
        public void noConcurrencySerializedReads_oneRepo() throws Exception {
                InMemoryRepository r1 = createRepoWithBitmap("test");
@@ -384,7 +383,6 @@ public class DfsBlockCacheTest {
                assertEquals(2, cache.getMissCount()[0]);
        }
 
-       @SuppressWarnings("resource")
        @Test
        public void highConcurrencyParallelReads_oneRepo() throws Exception {
                InMemoryRepository r1 = createRepoWithBitmap("test");
@@ -407,7 +405,6 @@ public class DfsBlockCacheTest {
                assertEquals(1, cache.getMissCount()[0]);
        }
 
-       @SuppressWarnings("resource")
        @Test
        public void highConcurrencyParallelReads_oneRepoParallelReverseIndex()
                        throws Exception {