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/04 16:10:37 UTC

[camel] branch master updated: CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-aws-ddb

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


The following commit(s) were added to refs/heads/master by this push:
     new d78a755  CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-aws-ddb
d78a755 is described below

commit d78a7552bf9f31cb65e67b798c25a53d7607aa6c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Sat Jan 4 17:07:27 2020 +0100

    CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-aws-ddb
---
 .../org/apache/camel/component/aws/ddb/AbstractDdbCommand.java     | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/components/camel-aws-ddb/src/main/java/org/apache/camel/component/aws/ddb/AbstractDdbCommand.java b/components/camel-aws-ddb/src/main/java/org/apache/camel/component/aws/ddb/AbstractDdbCommand.java
index 02e8fa6..9ef7ebe 100644
--- a/components/camel-aws-ddb/src/main/java/org/apache/camel/component/aws/ddb/AbstractDdbCommand.java
+++ b/components/camel-aws-ddb/src/main/java/org/apache/camel/component/aws/ddb/AbstractDdbCommand.java
@@ -41,12 +41,7 @@ public abstract class AbstractDdbCommand {
     public abstract void execute();
 
     protected Message getMessageForResponse(Exchange exchange) {
-        if (exchange.getPattern().isOutCapable()) {
-            Message out = exchange.getOut();
-            out.copyFrom(exchange.getIn());
-            return out;
-        }
-        return exchange.getIn();
+        return exchange.getMessage();
     }
 
     protected String determineTableName() {