You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/07/16 14:36:36 UTC
(commons-net) branch master updated: Make expression easier to read
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 5a5d26fb Make expression easier to read
5a5d26fb is described below
commit 5a5d26fbe2c1aebaca3c9fde49870b51041e2896
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Wed Jul 16 10:36:31 2025 -0400
Make expression easier to read
---
src/main/java/org/apache/commons/net/ftp/FTPClient.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 e3baf31e..e3f812b4 100644
--- a/src/main/java/org/apache/commons/net/ftp/FTPClient.java
+++ b/src/main/java/org/apache/commons/net/ftp/FTPClient.java
@@ -1241,7 +1241,7 @@ public class FTPClient extends FTP implements Configurable {
} else // if no parserKey was supplied, check for a configuration
// in the params, and if it has a non-empty system type, use that.
- if (null != ftpClientConfig && ftpClientConfig.getServerSystemKey().length() > 0) {
+ if (ftpClientConfig != null && ftpClientConfig.getServerSystemKey().length() > 0) {
entryParser = parserFactory.createFileEntryParser(ftpClientConfig);
entryParserKey = ftpClientConfig.getServerSystemKey();
} else {
@@ -1260,7 +1260,7 @@ public class FTPClient extends FTP implements Configurable {
}
}
}
- if (null != ftpClientConfig) { // system type must have been empty above
+ if (ftpClientConfig != null) { // system type must have been empty above
entryParser = parserFactory.createFileEntryParser(new FTPClientConfig(systemType, ftpClientConfig));
} else {
entryParser = parserFactory.createFileEntryParser(systemType);