commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject svn commit: r1653946 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
Date Thu, 22 Jan 2015 17:14:24 GMT
Author: krosenvold
Date: Thu Jan 22 17:14:24 2015
New Revision: 1653946

URL: http://svn.apache.org/r1653946
Log:
Removed unused import, upgraded statement to contains()

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java?rev=1653946&r1=1653945&r2=1653946&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveOutputStream.java
Thu Jan 22 17:14:24 2015
@@ -138,7 +138,7 @@ public class ArArchiveOutputStream exten
             throw new IOException("filename too long, > 16 chars: "+n);
         }
         if (LONGFILE_BSD == longFileMode && 
-            (n.length() > 16 || n.indexOf(" ") > -1)) {
+            (n.length() > 16 || n.contains(" "))) {
             mustAppendName = true;
             offset += write(ArArchiveInputStream.BSD_LONGNAME_PREFIX
                             + String.valueOf(n.length()));



Mime
View raw message