commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1308096 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java
Date Sun, 01 Apr 2012 13:04:06 GMT
Author: ggregory
Date: Sun Apr  1 13:04:06 2012
New Revision: 1308096

URL: http://svn.apache.org/viewvc?rev=1308096&view=rev
Log:
Remove unnecessary cast.

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java?rev=1308096&r1=1308095&r2=1308096&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveUtil.java
Sun Apr  1 13:04:06 2012
@@ -94,7 +94,7 @@ class DumpArchiveUtil {
         i += (((long) buffer[offset + 3] << 24) & 0x00000000FF000000L);
         i += (((long) buffer[offset + 2] << 16) & 0x0000000000FF0000L);
         i += (((long) buffer[offset + 1] << 8) & 0x000000000000FF00L);
-        i += (((long) buffer[offset]) & 0x00000000000000FFL);
+        i += (buffer[offset] & 0x00000000000000FFL);
 
         return i;
     }



Mime
View raw message