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

commit 1b584b493ffa6a1b42cbda3c7f683e073f1a3bdf
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Mar 13 07:35:54 2026 -0400

    Fix typo in FTPConnectionClosedException message from
    FTP.getReply(boolean).
---
 src/changes/changes.xml                           | 1 +
 src/main/java/org/apache/commons/net/ftp/FTP.java | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 17dba11f..41c03c5c 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -74,6 +74,7 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="fix" dev="ggregory" due-to="Gary 
Gregory">FTPClient._storeFile(String, String, InputStream) doesn't always close 
it's internal socket when an exception is thrown early in processing.</action>
       <action type="fix" dev="ggregory" due-to="Gary 
Gregory">ListenerList.removeListener(T) now ignores null input to avoid a 
NullPointerException.</action>
       <action type="fix" dev="ggregory" due-to="Gary 
Gregory">ListenerList.addListener(T) now ignores null input.</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix typo in 
FTPConnectionClosedException message from FTP.getReply(boolean).</action>
       <!-- ADD -->
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
DatagramSocketClient.getDefaultTimeoutDuration() and deprecate 
getDefaultTimeout().</action>
       <action type="add" dev="ggregory" due-to="Maros Orsak, Gary Gregory" 
issue="NET-741">Add subnet IPv6 handling with SubnetUtils6 #391.</action>
diff --git a/src/main/java/org/apache/commons/net/ftp/FTP.java 
b/src/main/java/org/apache/commons/net/ftp/FTP.java
index 50f8e3bb..d3cb7b02 100644
--- a/src/main/java/org/apache/commons/net/ftp/FTP.java
+++ b/src/main/java/org/apache/commons/net/ftp/FTP.java
@@ -663,7 +663,7 @@ public class FTP extends SocketClient {
             fireReplyReceived(_replyCode, getReplyString());
         }
         if (_replyCode == FTPReply.SERVICE_NOT_AVAILABLE) {
-            throw new FTPConnectionClosedException("FTP response 421 received. 
 Server closed connection.");
+            throw new FTPConnectionClosedException("FTP response 421 received. 
Server closed connection.");
         }
         return _replyCode;
     }
@@ -922,7 +922,6 @@ public class FTP extends SocketClient {
      * @throws IOException                  If an I/O error occurs while 
either sending the command or receiving the server reply.
      */
     public int mode(final int mode) throws IOException {
-
         return sendCommand(FTPCmd.MODE, modeStringAt(mode));
     }
 

Reply via email to