commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: jakarta-commons/net/src/java/org/apache/commons/net/io Util.java
Date Mon, 20 Sep 2004 23:24:46 GMT
dfs         2004/09/20 16:24:46

  Modified:    net/src/java/org/apache/commons/net/io Util.java
  Log:
  Added missing if(flush) test.
  
  Revision  Changes    Path
  1.13      +2 -1      jakarta-commons/net/src/java/org/apache/commons/net/io/Util.java
  
  Index: Util.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/io/Util.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Util.java	8 Sep 2004 17:14:46 -0000	1.12
  +++ Util.java	20 Sep 2004 23:24:46 -0000	1.13
  @@ -115,7 +115,8 @@
                   }
   
                   dest.write(buffer, 0, bytes);
  -                dest.flush();
  +                if(flush)
  +                  dest.flush();
                   total += bytes;
                   if (listener != null)
                       listener.bytesTransferred(total, bytes, streamSize);
  
  
  

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


Mime
View raw message