You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2013/01/02 15:54:28 UTC

svn commit: r1427806 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/converter/CxfPayloadConverter.java

Author: bvahdat
Date: Wed Jan  2 14:54:28 2013
New Revision: 1427806

URL: http://svn.apache.org/viewvc?rev=1427806&view=rev
Log:
CAMEL-5877: Fixed the typo in case the value is of the type Source.

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

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/converter/CxfPayloadConverter.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/converter/CxfPayloadConverter.java?rev=1427806&r1=1427805&r2=1427806&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/converter/CxfPayloadConverter.java (original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/converter/CxfPayloadConverter.java Wed Jan  2 14:54:28 2013
@@ -126,7 +126,7 @@ public final class CxfPayloadConverter {
                 } else if (value instanceof Node) {
                     src = new DOMSource((Node)value);
                 } else if (value instanceof Source) {
-                    src = (Source)src;
+                    src = (Source)value;
                 }
                 if (src == null) {
                     // assuming staxsource is preferred, otherwise use the one preferred