cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r605923 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java
Date Thu, 20 Dec 2007 13:33:16 GMT
Author: mmao
Date: Thu Dec 20 05:33:15 2007
New Revision: 605923

URL: http://svn.apache.org/viewvc?rev=605923&view=rev
Log:
* Minor Update


Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java?rev=605923&r1=605922&r2=605923&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentDataSource.java
Thu Dec 20 05:33:15 2007
@@ -31,13 +31,11 @@
 public class AttachmentDataSource implements DataSource {
 
     private final String ct;
-    private final InputStream in;
     private final byte[] cache; 
     
     public AttachmentDataSource(String ctParam, InputStream inParam) throws IOException {
         this.ct = ctParam;
-        this.in = inParam;
-        cache = IOUtils.readBytesFromStream(in);
+        cache = IOUtils.readBytesFromStream(inParam);
     }
 
     public String getContentType() {



Mime
View raw message