commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1308086 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java
Date Sun, 01 Apr 2012 11:53:16 GMT
Author: sebb
Date: Sun Apr  1 11:53:16 2012
New Revision: 1308086

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

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java?rev=1308086&r1=1308085&r2=1308086&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStreamTest.java
Sun Apr  1 11:53:16 2012
@@ -88,11 +88,10 @@ public class TarArchiveOutputStreamTest 
         tos.write(new byte[10 * 1024]);
         byte[] data = bos.toByteArray();
         assertEquals(0x80,
-                     ((int) data[TarConstants.NAMELEN
-                                 + TarConstants.MODELEN
-                                 + TarConstants.UIDLEN
-                                 + TarConstants.GIDLEN]
-                      ) & 0x80);
+                     data[TarConstants.NAMELEN
+                        + TarConstants.MODELEN
+                        + TarConstants.UIDLEN
+                        + TarConstants.GIDLEN] & 0x80);
         TarArchiveInputStream tin =
             new TarArchiveInputStream(new ByteArrayInputStream(data));
         TarArchiveEntry e = tin.getNextTarEntry();



Mime
View raw message