Remove deprecated usage of Exchange.getOut in StaxProcessor#11752
Remove deprecated usage of Exchange.getOut in StaxProcessor#11752apupier wants to merge 1 commit into
Conversation
Signed-off-by: Aurélien Pupier <apupier@redhat.com>
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🤖 CI automation will test this PR automatically. 🐫 Apache Camel Committers, please review the following items:
|
davsclaus
left a comment
There was a problem hiding this comment.
this is not correct, the old code is correct
Otherwise all the code should just be
exchange.getMessage().setBody
to only change the body, and not copy over headers etc.
|
By what should it be replaced then? How to get rid of the deprecated method? |
Leave it as-is. The deprecation is for end users to not use it. |
Description
Target
camel-3.x, whereas Camel 4 uses themainbranch)Tracking
Apache Camel coding standards and style
mvn clean install -DskipTestslocally and I have committed all auto-generated changes