From 59a3d8bc2c7e6b7c09a6781e0746b51a5c362d04 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 6 Jun 2024 07:26:35 -0400 Subject: [PATCH] Add @SuppressWarnings("unused") Subclasses may throw IOException --- src/main/java/org/apache/commons/net/SocketClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/net/SocketClient.java b/src/main/java/org/apache/commons/net/SocketClient.java index 829630b1f..5ff2cf3c3 100644 --- a/src/main/java/org/apache/commons/net/SocketClient.java +++ b/src/main/java/org/apache/commons/net/SocketClient.java @@ -319,8 +319,9 @@ protected void createCommandSupport() { * Disconnects the socket connection. You should call this method after you've finished using the class instance and also before you call {@link #connect * connect() } again. _isConnected_ is set to false, _socket_ is set to null, _input_ is set to null, and _output_ is set to null. * - * @throws IOException If there is an error closing the socket. + * @throws IOException not thrown, subclasses may throw. */ + @SuppressWarnings("unused") // subclasses may throw IOException public void disconnect() throws IOException { closeQuietly(_socket_); closeQuietly(_input_);