ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/zip ZipOutputStream.java
Date Wed, 10 Mar 2004 14:40:49 GMT
bodewig     2004/03/10 06:40:49

  Modified:    src/main/org/apache/tools/zip ZipOutputStream.java
  Log:
  Wrong condition in flush, submitted by Martijn Kruithof, PR: 27549
  
  Revision  Changes    Path
  1.22      +2 -2      ant/src/main/org/apache/tools/zip/ZipOutputStream.java
  
  Index: ZipOutputStream.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/zip/ZipOutputStream.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ZipOutputStream.java	9 Mar 2004 16:48:55 -0000	1.21
  +++ ZipOutputStream.java	10 Mar 2004 14:40:49 -0000	1.22
  @@ -504,7 +504,7 @@
        * @since 1.14
        */
       public void flush() throws IOException {
  -        if (out == null) {
  +        if (out != null) {
               out.flush();
           }
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message