This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch opt-exchangekey
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/opt-exchangekey by this push:
     new 1f4c579  CAMEL-16326: camel-core - Optimize usage of exchanage 
properties for state in routing engine.
1f4c579 is described below

commit 1f4c5799a00083dc2fb58a41c32d50ece5805559
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Mar 11 17:49:12 2021 +0100

    CAMEL-16326: camel-core - Optimize usage of exchanage properties for state 
in routing engine.
---
 .../src/main/java/org/apache/camel/support/AbstractExchange.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java
 
b/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java
index 94a8bba..c9bdc78 100644
--- 
a/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java
+++ 
b/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java
@@ -158,7 +158,8 @@ class AbstractExchange implements ExtendedExchange {
                     = (List<MessageHistory>) 
exchange.internalProperties[ExchangePropertyKey.MESSAGE_HISTORY.ordinal()];
             if (history != null) {
                 // use thread-safe list as message history may be accessed 
concurrently
-                
exchange.internalProperties[ExchangePropertyKey.MESSAGE_HISTORY.ordinal()] = 
new CopyOnWriteArrayList<>(history);
+                
exchange.internalProperties[ExchangePropertyKey.MESSAGE_HISTORY.ordinal()]
+                        = new CopyOnWriteArrayList<>(history);
             }
         }
 

Reply via email to