commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r759343 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java
Date Fri, 27 Mar 2009 20:47:04 GMT
Author: sebb
Date: Fri Mar 27 20:47:04 2009
New Revision: 759343

URL: http://svn.apache.org/viewvc?rev=759343&view=rev
Log:
Caller must already have set the entry format

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java?rev=759343&r1=759342&r2=759343&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java
Fri Mar 27 20:47:04 2009
@@ -148,9 +148,7 @@
         }
 
         final short format = e.getFormat();
-        if (format == 0) {// Not yet initialised
-            e.setFormat(this.entryFormat);
-        } else if (format != this.entryFormat){
+        if (format != this.entryFormat){
             throw new IOException("Header format: "+format+" does not match existing format:
"+this.entryFormat);
         }
 



Mime
View raw message