cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1104248 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
Date Tue, 17 May 2011 13:44:58 GMT
Author: ffang
Date: Tue May 17 13:44:58 2011
New Revision: 1104248

URL: http://svn.apache.org/viewvc?rev=1104248&view=rev
Log:
revert unmeant commit

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

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java?rev=1104248&r1=1104247&r2=1104248&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java Tue May
17 13:44:58 2011
@@ -285,13 +285,9 @@ public final class AttachmentUtil {
             } catch (UnsupportedEncodingException ue) {
                 contentId = contentId.substring(4);
             }
-            LazyDataSource lazyDS =  new LazyDataSource(contentId, atts);
-            lazyDS.getContentType();
-            return lazyDS;
+            return new LazyDataSource(contentId, atts);
         } else if (contentId.indexOf("://") == -1) {
-            LazyDataSource lazyDS =  new LazyDataSource(contentId, atts);
-            lazyDS.getContentType();
-            return lazyDS;
+            return new LazyDataSource(contentId, atts);
         } else {
             try {
                 return new URLDataSource(new URL(contentId));



Mime
View raw message