This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit 2f5419b9f5b3f53ab9b3a30c7c89cfc7487c32ac Author: Gary Gregory <[email protected]> AuthorDate: Fri May 17 14:06:05 2024 -0400 Remove unused exceptions in method signatures --- .../java/org/apache/commons/compress/compressors/GZipTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/compress/compressors/GZipTest.java b/src/test/java/org/apache/commons/compress/compressors/GZipTest.java index 65649ab45..075298aa5 100644 --- a/src/test/java/org/apache/commons/compress/compressors/GZipTest.java +++ b/src/test/java/org/apache/commons/compress/compressors/GZipTest.java @@ -35,7 +35,6 @@ import java.nio.file.Files; import java.util.ArrayList; import java.util.List; import java.util.Objects; -import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; @@ -58,7 +57,7 @@ import org.junit.jupiter.params.provider.ValueSource; public final class GZipTest extends AbstractTest { - private void testCompress666(final int factor, final boolean bufferInputStream, final String localPath) throws ExecutionException, InterruptedException { + private void testCompress666(final int factor, final boolean bufferInputStream, final String localPath) { final ExecutorService executorService = Executors.newFixedThreadPool(10); try { final List<Future<?>> tasks = IntStream.range(0, 200).mapToObj(index -> executorService.submit(() -> { @@ -100,7 +99,7 @@ public final class GZipTest extends AbstractTest { */ @ParameterizedTest @ValueSource(ints = { 1, 2, 4, 8, 16, 20, 32, 64, 128 }) - public void testCompress666Buffered(final int factor) throws ExecutionException, InterruptedException { + public void testCompress666Buffered(final int factor) { testCompress666(factor, true, "/COMPRESS-666/compress-666.tar.gz"); } @@ -111,7 +110,7 @@ public final class GZipTest extends AbstractTest { */ @ParameterizedTest @ValueSource(ints = { 1, 2, 4, 8, 16, 20, 32, 64, 128 }) - public void testCompress666Unbuffered(final int factor) throws ExecutionException, InterruptedException { + public void testCompress666Unbuffered(final int factor) { testCompress666(factor, false, "/COMPRESS-666/compress-666.tar.gz"); }
