aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Gregory <garydgregory@gmail.com>2022-03-07 15:37:00 -0500
committerGary Gregory <garydgregory@gmail.com>2022-03-07 15:37:00 -0500
commit7752a7b980b23ab5ad2e2ef4da738428ed168920 (patch)
treed80cb8344cafc42980d10d7ea7a8f0d1ee36bcf1
parentb02dad440f14b56250c60bfcee96cb6f94469be8 (diff)
downloadapache-commons-lang-7752a7b980b23ab5ad2e2ef4da738428ed168920.tar.gz
Remove unused exceptions from test method signatures.
-rw-r--r--src/test/java/org/apache/commons/lang3/builder/ToStringStyleConcurrencyTest.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test/java/org/apache/commons/lang3/builder/ToStringStyleConcurrencyTest.java b/src/test/java/org/apache/commons/lang3/builder/ToStringStyleConcurrencyTest.java
index 379f7f47b..8453e0e14 100644
--- a/src/test/java/org/apache/commons/lang3/builder/ToStringStyleConcurrencyTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/ToStringStyleConcurrencyTest.java
@@ -23,7 +23,6 @@ import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.CopyOnWriteArrayList;
-import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
@@ -68,22 +67,21 @@ public class ToStringStyleConcurrencyTest {
}
@Test
- public void testLinkedList() throws InterruptedException, ExecutionException {
+ public void testLinkedList() throws InterruptedException {
this.testConcurrency(new CollectionHolder<>(new LinkedList<>()));
}
@Test
- public void testArrayList() throws InterruptedException, ExecutionException {
+ public void testArrayList() throws InterruptedException {
this.testConcurrency(new CollectionHolder<>(new ArrayList<>()));
}
@Test
- public void testCopyOnWriteArrayList() throws InterruptedException, ExecutionException {
+ public void testCopyOnWriteArrayList() throws InterruptedException {
this.testConcurrency(new CollectionHolder<>(new CopyOnWriteArrayList<>()));
}
- private void testConcurrency(final CollectionHolder<List<Integer>> holder) throws InterruptedException,
- ExecutionException {
+ private void testConcurrency(final CollectionHolder<List<Integer>> holder) throws InterruptedException {
final List<Integer> list = holder.collection;
// make a big array that takes a long time to toString()
list.addAll(LIST);