commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1150881 - /commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
Date Mon, 25 Jul 2011 20:17:06 GMT
Author: bodewig
Date: Mon Jul 25 20:17:05 2011
New Revision: 1150881

URL: http://svn.apache.org/viewvc?rev=1150881&view=rev
Log:
minor optimization

Modified:
    commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java

Modified: commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java?rev=1150881&r1=1150880&r2=1150881&view=diff
==============================================================================
--- commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
(original)
+++ commons/proper/compress/branches/zip64/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
Mon Jul 25 20:17:05 2011
@@ -512,9 +512,9 @@ public class ZipArchiveInputStream exten
         current.setCrc(val.getValue());
         if (!usesZip64) {
             readFully(b);
-            current.setCompressedSize(new ZipLong(b).getValue());
+            current.setCompressedSize(ZipLong.getValue(b));
             readFully(b);
-            current.setSize(new ZipLong(b).getValue());
+            current.setSize(ZipLong.getValue(b));
         } else {
             byte[] b8 = new byte[DWORD];
             readFully(b8);



Mime
View raw message