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 7a1e6f10 Add @SuppressWarnings("unused")
7a1e6f10 is described below

commit 7a1e6f10c51c7f93127eb552934e237605cadd4d
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Jun 6 07:25:13 2024 -0400

    Add @SuppressWarnings("unused")
    
    Subclasses may throw SocketException
---
 src/main/java/org/apache/commons/net/SocketClient.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/org/apache/commons/net/SocketClient.java 
b/src/main/java/org/apache/commons/net/SocketClient.java
index d7571da2..829630b1 100644
--- a/src/main/java/org/apache/commons/net/SocketClient.java
+++ b/src/main/java/org/apache/commons/net/SocketClient.java
@@ -692,6 +692,7 @@ public abstract class SocketClient {
      * @throws SocketException never (but subclasses may wish to do so)
      * @since 2.0
      */
+    @SuppressWarnings("unused") // subclasses may throw SocketException
     public void setReceiveBufferSize(final int size) throws SocketException {
         receiveBufferSize = size;
     }
@@ -703,6 +704,7 @@ public abstract class SocketClient {
      * @throws SocketException never thrown, but subclasses might want to do so
      * @since 2.0
      */
+    @SuppressWarnings("unused") // subclasses may throw SocketException
     public void setSendBufferSize(final int size) throws SocketException {
         sendBufferSize = size;
     }

Reply via email to