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/11/05 13:33:14 UTC
[camel] 02/02: Camel-Git Branch Consumer: Remove getOut call and
use GetMessage
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
commit 05fe7af6209b23d00d8fdcd1d3d26e484d95d322
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Nov 5 14:29:51 2020 +0100
Camel-Git Branch Consumer: Remove getOut call and use GetMessage
---
.../java/org/apache/camel/component/git/consumer/GitBranchConsumer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java b/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java
index 729ee02..e06a839 100644
--- a/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java
+++ b/components/camel-git/src/main/java/org/apache/camel/component/git/consumer/GitBranchConsumer.java
@@ -40,7 +40,7 @@ public class GitBranchConsumer extends AbstractGitConsumer {
for (Ref ref : call) {
if (!branchesConsumed.contains(ref.getName())) {
Exchange e = getEndpoint().createExchange();
- e.getOut().setBody(ref);
+ e.getMessage().setBody(ref);
getProcessor().process(e);
branchesConsumed.add(ref.getName());
count++;