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 4156489  Use isEmpty().
4156489 is described below

commit 4156489bf6058b788230e88f43df4875b60e681a
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jan 16 22:31:09 2021 -0500

    Use isEmpty().
---
 src/main/java/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java 
b/src/main/java/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java
index f292b7f..389d8b2 100644
--- a/src/main/java/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java
+++ b/src/main/java/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java
@@ -471,7 +471,7 @@ public class MVSFTPEntryParser extends 
ConfigurableFTPFileEntryParserImpl {
         // simply remove the header line. Composite logic will take care of the
         // two different types of
         // list in short order.
-        if (orig != null && orig.size() > 0) {
+        if (orig != null && !orig.isEmpty()) {
             final String header = orig.get(0);
             if (header.indexOf("Volume") >= 0 && header.indexOf("Dsname") >= 
0) {
                 setType(FILE_LIST_TYPE);

Reply via email to