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 59a3d8bc Add @SuppressWarnings("unused") 59a3d8bc is described below commit 59a3d8bc2c7e6b7c09a6781e0746b51a5c362d04 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Jun 6 07:26:35 2024 -0400 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 829630b1..5ff2cf3c 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 @@ public abstract class SocketClient { * 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_);