cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1335892 - in /cxf/trunk/api/src/main/java/org/apache/cxf/attachment: AttachmentUtil.java LazyDataSource.java
Date Wed, 09 May 2012 01:55:32 GMT
Author: dkulp
Date: Wed May  9 01:55:31 2012
New Revision: 1335892

URL: http://svn.apache.org/viewvc?rev=1335892&view=rev
Log:
[CXF-4298, CXF-3505] Old fix for CXF-3505 not needed anymore as other
fixes have made sure the streams are closed properly.

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
    cxf/trunk/api/src/main/java/org/apache/cxf/attachment/LazyDataSource.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java?rev=1335892&r1=1335891&r2=1335892&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java Wed May  9 01:55:31
2012
@@ -333,10 +333,7 @@ public final class AttachmentUtil {
     }
 
     private static DataSource loadDataSource(String contentId, Collection<Attachment>
atts) {
-        LazyDataSource lazyDS =  new LazyDataSource(contentId, atts);
-        //ensure the attachment DS is loaded to make it also work with SUN's activation lib
-        lazyDS.getContentType();
-        return lazyDS;
+        return new LazyDataSource(contentId, atts);
     }
     
 }

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/attachment/LazyDataSource.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/attachment/LazyDataSource.java?rev=1335892&r1=1335891&r2=1335892&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/attachment/LazyDataSource.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/attachment/LazyDataSource.java Wed May  9 01:55:31
2012
@@ -103,6 +103,8 @@ public class LazyDataSource implements D
     }
 
     public DataSource getDataSource() {
+        load();
+        
         return dataSource;
     }
 



Mime
View raw message