commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1030177 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/tar/TarInputStream.java
Date Tue, 02 Nov 2010 19:02:02 GMT
Author: sebb
Date: Tue Nov  2 19:02:02 2010
New Revision: 1030177

URL: http://svn.apache.org/viewvc?rev=1030177&view=rev
Log:
Unnecessary cast

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/tar/TarInputStream.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/tar/TarInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/tar/TarInputStream.java?rev=1030177&r1=1030176&r2=1030177&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/tar/TarInputStream.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/tar/TarInputStream.java
Tue Nov  2 19:02:02 2010
@@ -437,7 +437,7 @@ class TarInputStream
     public void longSkip(final long numToSkip) throws IOException {
       for(long skipped = 0; skipped < numToSkip;) {
         if(numToSkip - skipped > Integer.MAX_VALUE) {
-          skip((int)Integer.MAX_VALUE);
+          skip(Integer.MAX_VALUE);
           skipped += Integer.MAX_VALUE;
         } else {
           skip((int)(numToSkip - skipped));



Mime
View raw message