commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1534269 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
Date Mon, 21 Oct 2013 16:27:48 GMT
Author: ggregory
Date: Mon Oct 21 16:27:48 2013
New Revision: 1534269

URL: http://svn.apache.org/r1534269
Log:
Unnecessary cast from int to long.

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java?rev=1534269&r1=1534268&r2=1534269&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
Mon Oct 21 16:27:48 2013
@@ -581,7 +581,7 @@ public class TarArchiveInputStream exten
         if (totalRead == -1) {
             hasHitEOF = true;
         } else {
-            entryOffset += (long) totalRead;
+            entryOffset += totalRead;
         }
 
         return totalRead;



Mime
View raw message