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


The following commit(s) were added to refs/heads/master by this push:
     new e7f64c98 The declared exception IOException is not actually thrown by 
the method
e7f64c98 is described below

commit e7f64c98a633be708fed4efcd3f91f3aa81bd2a3
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Jun 6 07:31:00 2024 -0400

    The declared exception IOException is not actually thrown by the method
---
 .../java/org/apache/commons/net/chargen/CharGenUDPClientTest.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/net/chargen/CharGenUDPClientTest.java 
b/src/test/java/org/apache/commons/net/chargen/CharGenUDPClientTest.java
index 34246c41..c7831a7d 100644
--- a/src/test/java/org/apache/commons/net/chargen/CharGenUDPClientTest.java
+++ b/src/test/java/org/apache/commons/net/chargen/CharGenUDPClientTest.java
@@ -20,7 +20,6 @@ package org.apache.commons.net.chargen;
 import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
 import static org.junit.jupiter.api.Assertions.assertThrows;
 
-import java.io.IOException;
 import java.net.InetAddress;
 
 import org.junit.jupiter.api.Test;
@@ -37,7 +36,7 @@ public class CharGenUDPClientTest {
     }
 
     @Test
-    public void testReceiver() throws IOException {
+    public void testReceiver() {
         try (CharGenUDPClient client = new CharGenUDPClient()) {
             // Not connected
             assertThrows(NullPointerException.class, client::receive);
@@ -45,7 +44,7 @@ public class CharGenUDPClientTest {
     }
 
     @Test
-    public void testSend() throws IOException {
+    public void testSend() {
         try (CharGenUDPClient client = new CharGenUDPClient()) {
             // Not connected
             assertThrows(NullPointerException.class, () -> 
client.send(InetAddress.getLocalHost()));

Reply via email to