You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "orpiske (via GitHub)" <gi...@apache.org> on 2023/05/09 14:18:27 UTC

[GitHub] [camel] orpiske commented on a diff in pull request #10037: (chores) Minor cleanups

orpiske commented on code in PR #10037:
URL: https://github.com/apache/camel/pull/10037#discussion_r1188676102


##########
core/camel-support/src/main/java/org/apache/camel/support/MessageSupport.java:
##########
@@ -204,8 +204,6 @@ public void copyFromWithNewBody(Message that, Object newBody) {
             return;
         }
 
-        // must copy over CamelContext
-        CamelContextAware.trySetCamelContext(that, camelContext);

Review Comment:
   The code is already setting up the context in the caller methods (either in the `copy` or in the caller methods prior to this one).



-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org