Skip to content

Commit f17c225

Browse files
authored
Core: Remove unused throws declarations (apache#10974)
1 parent 40d5204 commit f17c225

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

core/src/test/java/org/apache/iceberg/util/TestParallelIterable.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import static org.assertj.core.api.Assertions.assertThat;
2222

23-
import java.io.IOException;
2423
import java.util.Collections;
2524
import java.util.Iterator;
2625
import java.util.List;
@@ -43,8 +42,7 @@
4342

4443
public class TestParallelIterable {
4544
@Test
46-
public void closeParallelIteratorWithoutCompleteIteration()
47-
throws IOException, IllegalAccessException, NoSuchFieldException {
45+
public void closeParallelIteratorWithoutCompleteIteration() {
4846
ExecutorService executor = Executors.newFixedThreadPool(1);
4947

5048
Iterable<CloseableIterable<Integer>> transform =
@@ -76,8 +74,7 @@ public CloseableIterator<Integer> iterator() {
7674
}
7775

7876
@Test
79-
public void closeMoreDataParallelIteratorWithoutCompleteIteration()
80-
throws IOException, IllegalAccessException, NoSuchFieldException {
77+
public void closeMoreDataParallelIteratorWithoutCompleteIteration() {
8178
ExecutorService executor = Executors.newFixedThreadPool(1);
8279
Iterator<Integer> integerIterator =
8380
new Iterator<Integer>() {
@@ -137,8 +134,7 @@ public CloseableIterator<Integer> iterator() {
137134
}
138135

139136
@Test
140-
public void limitQueueSize() throws IOException, IllegalAccessException, NoSuchFieldException {
141-
137+
public void limitQueueSize() {
142138
List<Iterable<Integer>> iterables =
143139
ImmutableList.of(
144140
() -> IntStream.range(0, 100).iterator(),

0 commit comments

Comments
 (0)