cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r744221 - /cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/io/AbstractWrappedOutputStream.java
Date Fri, 13 Feb 2009 19:19:58 GMT
Author: dkulp
Date: Fri Feb 13 19:19:57 2009
New Revision: 744221

URL: http://svn.apache.org/viewvc?rev=744221&view=rev
Log:
Fix test failure

Modified:
    cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/io/AbstractWrappedOutputStream.java

Modified: cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/io/AbstractWrappedOutputStream.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/io/AbstractWrappedOutputStream.java?rev=744221&r1=744220&r2=744221&view=diff
==============================================================================
--- cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/io/AbstractWrappedOutputStream.java
(original)
+++ cxf/branches/2.0.x-fixes/api/src/main/java/org/apache/cxf/io/AbstractWrappedOutputStream.java
Fri Feb 13 19:19:57 2009
@@ -52,11 +52,7 @@
 
     @Override
     public void write(byte[] b) throws IOException {
-        if (!written) {
-            onFirstWrite();
-            written = true;
-        }
-        wrappedStream.write(b);
+        write(b, 0, b.length);
     }
 
     @Override



Mime
View raw message