You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2018/08/27 11:58:22 UTC
[camel] branch master updated: CAMEL-12727: Fixed potential
concurrency issue in DefaultExchange copy. Going back to use ConcurrenctMap
as we did in Camel 2.19 and older.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 32a0419 CAMEL-12727: Fixed potential concurrency issue in DefaultExchange copy. Going back to use ConcurrenctMap as we did in Camel 2.19 and older.
32a0419 is described below
commit 32a041909347469f593bc1141e824032ca16a2a2
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Aug 27 13:57:56 2018 +0200
CAMEL-12727: Fixed potential concurrency issue in DefaultExchange copy. Going back to use ConcurrenctMap as we did in Camel 2.19 and older.
---
camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
index fc50df1..61230f3 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
@@ -18,12 +18,12 @@ package org.apache.camel.impl;
import java.util.ArrayList;
import java.util.Date;
-import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
+import java.util.concurrent.ConcurrentHashMap;
import org.apache.camel.CamelContext;
import org.apache.camel.Endpoint;
@@ -560,11 +560,11 @@ public final class DefaultExchange implements Exchange {
}
protected Map<String, Object> createProperties() {
- return new HashMap<>();
+ return new ConcurrentHashMap<>();
}
protected Map<String, Object> createProperties(Map<String, Object> properties) {
- return new HashMap<>(properties);
+ return new ConcurrentHashMap<>(properties);
}
private static boolean isExcludePatternMatch(String key, String... excludePatterns) {