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 2014/02/10 02:26:48 UTC
[2/2] git commit: CAMEL-7181 fixe the test failure of
CxfMtomPOJOProducerTest
CAMEL-7181 fixe the test failure of CxfMtomPOJOProducerTest
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/2cdf2e78
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2cdf2e78
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2cdf2e78
Branch: refs/heads/camel-2.11.x
Commit: 2cdf2e7802e13c38b0f4a08d37d26a3d0aac9b9b
Parents: f50c918
Author: Willem Jiang <wi...@gmail.com>
Authored: Mon Feb 10 09:21:03 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Mon Feb 10 09:26:22 2014 +0800
----------------------------------------------------------------------
.../java/org/apache/camel/component/cxf/DefaultCxfBinding.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/2cdf2e78/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
index cffce26..fa1735a 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
@@ -170,7 +170,7 @@ public class DefaultCxfBinding implements CxfBinding, HeaderFilterStrategyAware
DataFormat.class);
boolean isXop = Boolean.valueOf(camelExchange.getProperty(Message.MTOM_ENABLED, String.class));
// propagate attachments if the data format is not POJO with MTOM enabled
- if (cxfMessage.getAttachments() != null && !(DataFormat.POJO.equals(dataFormat) && !isXop)) {
+ if (cxfMessage.getAttachments() != null && !(DataFormat.POJO.equals(dataFormat) && isXop)) {
// propagate attachments
for (Attachment attachment : cxfMessage.getAttachments()) {
camelExchange.getOut().addAttachment(attachment.getId(), attachment.getDataHandler());