camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [5/6] camel git commit: Prepare OUT to IN do not need a copy but just move the message directly.
Date Fri, 30 Oct 2015 16:12:01 GMT
Prepare OUT to IN do not need a copy but just move the message directly.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/98a2ae29
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/98a2ae29
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/98a2ae29

Branch: refs/heads/camel-2.16.x
Commit: 98a2ae29a79161f80a1fadf2f9499fb72b21f9fc
Parents: 719b4cd
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Fri Oct 30 15:03:24 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Oct 30 17:14:20 2015 +0100

----------------------------------------------------------------------
 camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/98a2ae29/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java b/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java
index cb8aa92..63d8013 100644
--- a/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java
+++ b/camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java
@@ -788,7 +788,7 @@ public final class ExchangeHelper {
     public static void prepareOutToIn(Exchange exchange) {
         // we are routing using pipes and filters so we need to manually copy OUT to IN
         if (exchange.hasOut()) {
-            exchange.getIn().copyFrom(exchange.getOut());
+            exchange.setIn(exchange.getOut());
             exchange.setOut(null);
         }
     }


Mime
View raw message