Skip to content

Commit

Permalink
Add @SuppressWarnings("unused")
Browse files Browse the repository at this point in the history
Subclasses may throw SocketException
  • Loading branch information
garydgregory committed Jun 6, 2024
1 parent b5038ef commit 7a1e6f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/apache/commons/net/SocketClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ public void setProxy(final Proxy proxy) {
* @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;
}
Expand All @@ -703,6 +704,7 @@ public void setReceiveBufferSize(final int size) throws SocketException {
* @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;
}
Expand Down

0 comments on commit 7a1e6f1

Please sign in to comment.