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-io.git

commit 2780f18c0738e87f685906d4639bd13651078c19
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jul 21 10:54:07 2025 -0400

    Remove unused exception
---
 src/test/java/org/apache/commons/io/channels/FileChannelsTest.java    | 4 ++--
 src/test/java/org/apache/commons/io/function/IOIterableTest.java      | 4 ++--
 .../java/org/apache/commons/io/output/ByteArrayOutputStreamTest.java  | 2 +-
 .../apache/commons/io/output/RandomAccessFileOutputStreamTest.java    | 2 +-
 .../org/apache/commons/io/output/ThresholdingOutputStreamTest.java    | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/test/java/org/apache/commons/io/channels/FileChannelsTest.java 
b/src/test/java/org/apache/commons/io/channels/FileChannelsTest.java
index 1543b9578..bbfbee9c5 100644
--- a/src/test/java/org/apache/commons/io/channels/FileChannelsTest.java
+++ b/src/test/java/org/apache/commons/io/channels/FileChannelsTest.java
@@ -59,7 +59,7 @@ enum FileChannelType {
     private static final String CONTENT = StringUtils.repeat("x", 
SMALL_BUFFER_SIZE);
 
     @SuppressWarnings("resource") // Caller closes
-    private static FileChannel getChannel(final FileInputStream inNotEmpty, 
final FileChannelType fileChannelType, final int readSize) throws IOException {
+    private static FileChannel getChannel(final FileInputStream inNotEmpty, 
final FileChannelType fileChannelType, final int readSize) {
         return wrap(inNotEmpty.getChannel(), fileChannelType, readSize);
     }
 
@@ -84,7 +84,7 @@ private static byte reverse(final byte b) {
         return (byte) (~b & 0xff);
     }
 
-    private static FileChannel wrap(final FileChannel fc, final 
FileChannelType fileChannelType, final int readSize) throws IOException {
+    private static FileChannel wrap(final FileChannel fc, final 
FileChannelType fileChannelType, final int readSize) {
         switch (fileChannelType) {
         case NON_BLOCKING:
             return new NonBlockingFileChannelProxy(fc);
diff --git a/src/test/java/org/apache/commons/io/function/IOIterableTest.java 
b/src/test/java/org/apache/commons/io/function/IOIterableTest.java
index a58d49426..1676c5b6a 100644
--- a/src/test/java/org/apache/commons/io/function/IOIterableTest.java
+++ b/src/test/java/org/apache/commons/io/function/IOIterableTest.java
@@ -77,14 +77,14 @@ void testIterator() throws IOException {
     }
 
     @Test
-    void testSpliterator() throws IOException {
+    void testSpliterator() {
         final AtomicInteger ref = new AtomicInteger();
         iterable.spliterator().forEachRemaining(e -> ref.incrementAndGet());
         assertEquals(2, ref.get());
     }
 
     @Test
-    void testUnrwap() throws IOException {
+    void testUnrwap() {
         assertSame(fixture.list, iterable.unwrap());
         assertSame(fixture.unwrap(), iterable.unwrap());
     }
diff --git 
a/src/test/java/org/apache/commons/io/output/ByteArrayOutputStreamTest.java 
b/src/test/java/org/apache/commons/io/output/ByteArrayOutputStreamTest.java
index 57fc7ae2f..99b465055 100644
--- a/src/test/java/org/apache/commons/io/output/ByteArrayOutputStreamTest.java
+++ b/src/test/java/org/apache/commons/io/output/ByteArrayOutputStreamTest.java
@@ -504,7 +504,7 @@ private int writeByte(final 
AbstractByteArrayOutputStream<?> baout, final java.i
         return count;
     }
 
-    private int writeByte(final AbstractByteArrayOutputStream<?> baout, final 
java.io.ByteArrayOutputStream ref, final int[] instructions) throws IOException 
{
+    private int writeByte(final AbstractByteArrayOutputStream<?> baout, final 
java.io.ByteArrayOutputStream ref, final int[] instructions) {
         int written = 0;
         for (final int instruction : instructions) {
             written += writeByte(baout, ref, instruction);
diff --git 
a/src/test/java/org/apache/commons/io/output/RandomAccessFileOutputStreamTest.java
 
b/src/test/java/org/apache/commons/io/output/RandomAccessFileOutputStreamTest.java
index 857a707bd..38db42037 100644
--- 
a/src/test/java/org/apache/commons/io/output/RandomAccessFileOutputStreamTest.java
+++ 
b/src/test/java/org/apache/commons/io/output/RandomAccessFileOutputStreamTest.java
@@ -134,7 +134,7 @@ void testWriteGet() throws IOException {
     }
 
     @Test
-    void testWriteGetDefault() throws IOException {
+    void testWriteGetDefault() {
         assertThrows(IllegalStateException.class, () -> {
             try (RandomAccessFileOutputStream os = 
RandomAccessFileOutputStream.builder().get()) {
                 validateState(os);
diff --git 
a/src/test/java/org/apache/commons/io/output/ThresholdingOutputStreamTest.java 
b/src/test/java/org/apache/commons/io/output/ThresholdingOutputStreamTest.java
index 2fe435665..5e1e2c00d 100644
--- 
a/src/test/java/org/apache/commons/io/output/ThresholdingOutputStreamTest.java
+++ 
b/src/test/java/org/apache/commons/io/output/ThresholdingOutputStreamTest.java
@@ -72,7 +72,7 @@ void testResetByteCount() throws IOException {
     }
 
     @Test
-    void testResetByteCountBrokenOutputStream() throws IOException {
+    void testResetByteCountBrokenOutputStream() {
         final int threshold = 1;
         final AtomicInteger counter = new AtomicInteger();
         final IOException e = assertThrows(IOException.class, () -> {

Reply via email to