svn commit: r1030314 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1030314 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java

ningjiang
Author: ningjiang
Date: Wed Nov  3 02:27:42 2010
New Revision: 1030314

URL: http://svn.apache.org/viewvc?rev=1030314&view=rev
Log:
Clean up the code of DefaultCxfBinding

Modified:
    camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java?rev=1030314&r1=1030313&r2=1030314&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java (original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java Wed Nov  3 02:27:42 2010
@@ -148,14 +148,8 @@ public class DefaultCxfBinding implement
         propagateHeadersFromCxfToCamel(cxfMessage, camelExchange.getOut(), camelExchange);
         
         if (cxfMessage.getAttachments() != null) {
-            // TODO: workaround for CXF-2503
-            try {
-                cxfMessage.getAttachments().size();
-            } catch (java.util.ConcurrentModificationException e) {
-                // ignore
-            }
-            // end of workaround
-
+            cxfMessage.getAttachments().size();
+          
             // propagate attachments
             for (Attachment attachment : cxfMessage.getAttachments()) {
                 camelExchange.getOut().addAttachment(attachment.getId(), attachment.getDataHandler());