This is an automated email from the ASF dual-hosted git repository.

garydgregory 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 501ec114 Flip test
501ec114 is described below

commit 501ec114e7a8401d65077c28ffc594dc997ed563
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jul 5 09:11:45 2026 -0400

    Flip test
---
 src/main/java/org/apache/commons/net/ftp/FTPClient.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/net/ftp/FTPClient.java 
b/src/main/java/org/apache/commons/net/ftp/FTPClient.java
index 81239237..563241b5 100644
--- a/src/main/java/org/apache/commons/net/ftp/FTPClient.java
+++ b/src/main/java/org/apache/commons/net/ftp/FTPClient.java
@@ -1223,7 +1223,7 @@ public class FTPClient extends FTP implements 
Configurable {
         // time a file listing is generated.
         // Note: we don't check against a null parserKey (NET-544)
         if (entryParser == null || parserKey != null && 
!entryParserKey.equals(parserKey)) {
-            if (null != parserKey) {
+            if (parserKey != null) {
                 // if a parser key was supplied in the parameters,
                 // use that to create the parser
                 entryParser = parserFactory.createFileEntryParser(parserKey);

Reply via email to