commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1788524 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
Date Fri, 24 Mar 2017 18:40:53 GMT
Author: sebb
Date: Fri Mar 24 18:40:53 2017
New Revision: 1788524

URL: http://svn.apache.org/viewvc?rev=1788524&view=rev
Log:
(FindBugs) cheaper to scan for chars than Strings of length 1

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java?rev=1788524&r1=1788523&r2=1788524&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
(original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
Fri Mar 24 18:40:53 2017
@@ -164,7 +164,7 @@ public class VMSFTPEntryParser extends C
             }
             else
             {
-                name = name.substring(0, name.lastIndexOf(";"));
+                name = name.substring(0, name.lastIndexOf(';'));
                 f.setName(name);
             }
             //size is retreived in blocks and needs to be put in bytes



Mime
View raw message