diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-10-25 11:34:22 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-10-25 11:34:22 +0000 |
commit | acdef905976fa4a5202856b98032180311b45f26 (patch) | |
tree | df7d5890e3801de626eaa9c1a987244707eabeb5 | |
parent | 872ba1c04d9160bc4dde76f185e22b3b66a88f25 (diff) |
Merge r1000235 TUSCANY-3037: Don't call setBody() if the message body hasn't changed
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1027070 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-1.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java b/sca-java-1.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java index 79c442450b..61e2751a8a 100644 --- a/sca-java-1.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java +++ b/sca-java-1.x/trunk/modules/core-databinding/src/main/java/org/apache/tuscany/sca/core/databinding/wire/DataTransformationInterceptor.java @@ -87,7 +87,9 @@ public class DataTransformationInterceptor implements Interceptor, DataExchangeS } else { assert !(result instanceof Throwable) : "Expected messages that are not throwable " + result; Object newResult = mediator.mediateOutput(result, sourceOperation, targetOperation, metadata); - resultMsg.setBody(newResult); + if (newResult != result) { + resultMsg.setBody(newResult); + } } return resultMsg; |