gnodet-bot commented on code in PR #28166:
URL: https://github.com/apache/camel/pull/28166#discussion_r4323377732


##########
core/camel-core-processor/src/main/java/org/apache/camel/processor/PollEnricher.java:
##########
@@ -644,6 +646,13 @@ public Exchange aggregate(Exchange oldExchange, Exchange 
newExchange) {
                 // and therefore we should set an empty body to indicate this 
fact
                 // but keep headers/attachments as we want to propagate those
                 oldExchange.getIn().setBody(null);
+                if (oldExchange.getIn().getBody() != null) {

Review Comment:
   Minor: `new DefaultMessage(oldExchange)` passes the exchange to the 
constructor, and `copyFromWithNewBody` then calls 
`setExchange(that.getExchange())` — same exchange, so this is redundant but 
harmless.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to