You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/05/11 19:04:00 UTC
[jira] [Updated] (CAMEL-17760) camel-core: consolidate copy-exchange-if-capable logic
[ https://issues.apache.org/jira/browse/CAMEL-17760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-17760:
--------------------------------
Fix Version/s: 3.18.0
(was: 3.17.0)
> camel-core: consolidate copy-exchange-if-capable logic
> -------------------------------------------------------
>
> Key: CAMEL-17760
> URL: https://issues.apache.org/jira/browse/CAMEL-17760
> Project: Camel
> Issue Type: Task
> Components: camel-core
> Affects Versions: 3.15.0
> Reporter: Otavio Rodolfo Piske
> Assignee: Otavio Rodolfo Piske
> Priority: Major
> Fix For: 3.18.0
>
>
> We have lots of code doing this:
>
> {code:java}
> if (exchange.getPattern().isOutCapable()) {
> exchange.getOut().copyFrom(exchange.getIn());
> exchange.getOut().setBody(body);
> } else {
> exchange.getIn().setBody(body);
> }{code}
>
> Because getOut is deprecated, this generates a lot of warnings. We can consolidate this logic in the ExchangeHelper class to simplify cleaning it up in the future.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)