Skip to content

Commit

Permalink
Add @SuppressWarnings("unused")
Browse files Browse the repository at this point in the history
Subclasses may throw IOException
  • Loading branch information
garydgregory committed Jun 6, 2024
1 parent 7a1e6f1 commit 59a3d8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/apache/commons/net/SocketClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down

0 comments on commit 59a3d8b

Please sign in to comment.