Browse Source

Made loop expression a simple value rather than a complex expression

Removing a Audit violation


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270886 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
aac16db25b
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      proposal/myrmidon/src/java/org/apache/aut/zip/ZipOutputStream.java

+ 6
- 4
proposal/myrmidon/src/java/org/apache/aut/zip/ZipOutputStream.java View File

@@ -33,9 +33,9 @@ import java.util.zip.ZipException;
* @author <a href="stefan.bodewig@epost.de">Stefan Bodewig</a>
* @version $Revision$
*/
public class ZipOutputStream extends DeflaterOutputStream
public class ZipOutputStream
extends DeflaterOutputStream
{

/**
* Helper, a 0 as ZipShort.
*
@@ -371,9 +371,11 @@ public class ZipOutputStream extends DeflaterOutputStream
{
closeEntry();
cdOffset = new ZipLong( written );
for( int i = 0; i < entries.size(); i++ )
final int size = entries.size();
for( int i = 0; i < size; i++ )
{
writeCentralFileHeader( (ZipEntry)entries.get( i ) );
final ZipEntry entry = (ZipEntry)entries.get( i );
writeCentralFileHeader( entry );
}
cdLength = new ZipLong( written - cdOffset.getValue() );
writeCentralDirectoryEnd();


Loading…
Cancel
Save