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 2021/01/17 03:31:14 UTC

[commons-net] branch master updated: Use isEmpty().

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 <ga...@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);