@@ -217,7 +217,7 @@ public void testGetExisting() throws Exception {
217217 assertThat (retrieved , isPresent ());
218218 }
219219
220- @ SuppressWarnings ({ "unchecked" , "PMD.UnnecessaryCast" } )
220+ @ SuppressWarnings ("unchecked" )
221221 @ Test
222222 public void testCantModifyReturnedCollection () throws Exception {
223223 I info = getGoodInfo ("test" , 1 );
@@ -322,7 +322,6 @@ public void testConcurrentAdds() throws Exception {
322322 defaultCount + 10 ,
323323 getInfoNames (config ).size ());
324324 // get a thread pool
325- @ SuppressWarnings ("PMD.CloseResource" ) // implements AutoCloseable in Java 21
326325 ExecutorService pool =
327326 Executors .newFixedThreadPool (16 , (Runnable r ) -> new Thread (r , "Info Concurrency Test for ADD" ));
328327 // create a bunch of concurrent adds
@@ -364,7 +363,6 @@ public void testConcurrentDeletes() throws Exception {
364363 defaultCount + 100 ,
365364 getInfoNames (config ).size ());
366365 // get a thread pool
367- @ SuppressWarnings ("PMD.CloseResource" ) // implements AutoCloseable in Java 21
368366 ExecutorService pool =
369367 Executors .newFixedThreadPool (16 , (Runnable r ) -> new Thread (r , "Info Concurrency Test for DELETE" ));
370368 // create a bunch of concurrent deletes
@@ -404,7 +402,6 @@ public void testConcurrentModifies() throws Exception {
404402 defaultCount + 100 ,
405403 getInfoNames (config ).size ());
406404 // get a thread pool
407- @ SuppressWarnings ("PMD.CloseResource" ) // implements AutoCloseable in Java 21
408405 ExecutorService pool =
409406 Executors .newFixedThreadPool (16 , (Runnable r ) -> new Thread (r , "Info Concurrency Test for MODIFY" ));
410407 // create a bunch of concurrent modifies
0 commit comments