You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2010/05/06 11:31:47 UTC

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

Author: ningjiang
Date: Thu May  6 09:31:47 2010
New Revision: 941631

URL: http://svn.apache.org/viewvc?rev=941631&view=rev
Log:
CAMEL-2614 clean up the code of CxfConsumer

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

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java?rev=941631&r1=941630&r2=941631&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java (original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java Thu May  6 09:31:47 2010
@@ -66,12 +66,12 @@ public class CxfConsumer extends Default
                 DataFormat dataFormat = endpoint.getDataFormat();
 
                 BindingOperationInfo boi = cxfExchange.getBindingOperationInfo();
+                // make sure the "boi" is remained as wrapped in PAYLOAD mode
                 if (dataFormat == DataFormat.PAYLOAD && boi.isUnwrapped()) {
                     boi = boi.getWrappedOperation();
                     cxfExchange.put(BindingOperationInfo.class, boi);
                 }
                 
-                //BindingOperationInfo boi = cxfExchange.get(BindingOperationInfo.class);
                 if (boi != null) {
                     camelExchange.setProperty(BindingOperationInfo.class.getName(), boi);
                     if (LOG.isTraceEnabled()) {