You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/01/07 15:23:58 UTC

[camel] 05/06: CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-aws-swf

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 66e08e4457cfc86e3ac4db119a8f3708508e5182
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jan 7 16:20:28 2020 +0100

    CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-aws-swf
---
 .../main/java/org/apache/camel/component/aws/swf/SWFEndpoint.java | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFEndpoint.java b/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFEndpoint.java
index c53cdd1..69c266e 100644
--- a/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFEndpoint.java
+++ b/components/camel-aws-swf/src/main/java/org/apache/camel/component/aws/swf/SWFEndpoint.java
@@ -138,15 +138,11 @@ public class SWFEndpoint extends DefaultEndpoint {
     }
 
     public Object getResult(Exchange exchange) {
-        return ExchangeHelper.isOutCapable(exchange) ? exchange.getOut().getBody() : exchange.getIn().getBody();
+        return exchange.getMessage();
     }
 
     public void setResult(Exchange exchange, Object result) {
-        if (ExchangeHelper.isOutCapable(exchange)) {
-            exchange.getOut().setBody(result);
-        } else {
-            exchange.getIn().setBody(result);
-        }
+        exchange.getMessage().setBody(result);
     }
 
     public void setConfiguration(SWFConfiguration configuration) {