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 2022/05/26 14:44:17 UTC

[commons-net] branch master updated: Remove redundant type cast

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 f3fd88f6 Remove redundant type cast
f3fd88f6 is described below

commit f3fd88f6b6d474e2efa2dcd4501b7ca81e207544
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu May 26 10:44:12 2022 -0400

    Remove redundant type cast
---
 .../org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java b/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java
index 1d3c9238..0833150e 100644
--- a/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java
+++ b/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java
@@ -141,7 +141,7 @@ public class VMSVersioningFTPEntryParser extends VMSFTPEntryParser
                 final String version = result.group(2);
                 final int nv = Integer.parseInt(version);
                 final Integer existing = existingEntries.get(name);
-                if ((null != existing) && ((int) nv < existing.intValue())) {
+                if ((null != existing) && (nv < existing.intValue())) {
                     iter.remove(); // removes older version from original list.
                 }
             }