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/05 17:06:17 UTC

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

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 b70508d  CAMEL-14020 - Migrate deprecate getOut to getMessage in tests, camel-aws-iam
b70508d is described below

commit b70508d42b60e48beec9a6c6daf1f2ae2875a681
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Sun Jan 5 18:05:59 2020 +0100

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

diff --git a/components/camel-aws-iam/src/main/java/org/apache/camel/component/aws/iam/IAMProducer.java b/components/camel-aws-iam/src/main/java/org/apache/camel/component/aws/iam/IAMProducer.java
index 1e0431f..f62ff92 100644
--- a/components/camel-aws-iam/src/main/java/org/apache/camel/component/aws/iam/IAMProducer.java
+++ b/components/camel-aws-iam/src/main/java/org/apache/camel/component/aws/iam/IAMProducer.java
@@ -388,11 +388,6 @@ public class IAMProducer extends DefaultProducer {
     }
     
     public static Message getMessageForResponse(final Exchange exchange) {
-        if (exchange.getPattern().isOutCapable()) {
-            Message out = exchange.getOut();
-            out.copyFrom(exchange.getIn());
-            return out;
-        }
-        return exchange.getIn();
+        return exchange.getMessage();
     }
 }