Skip to content

Commit

Permalink
Appease the Eclipse compiler when using Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Dec 15, 2023
1 parent 7437348 commit 8f5fbd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ void createsAndClosesJarFileSystemOnceWhenCalledConcurrently() throws Exception
}

@Test
@SuppressWarnings("resource")
void closingIsIdempotent() throws Exception {
var path1 = CloseablePath.create(uri);
paths.add(path1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ void reportEntriesCanBeAddedConcurrently() throws Exception {
assertThat(treeNode.reports).hasSize(NUM_THREADS * ITEMS_PER_THREAD);
}

@SuppressWarnings("resource")
private void runConcurrently(Runnable action) throws InterruptedException {
ExecutorService executor = new ThreadPoolExecutor(NUM_THREADS, NUM_THREADS, 10, SECONDS,
new ArrayBlockingQueue<>(NUM_THREADS));
Expand Down

0 comments on commit 8f5fbd0

Please sign in to comment.