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/02/27 12:11:11 UTC
[camel] branch camel-2.20.x updated: CAMEL-12293: Avoid
KeyAlreadyExistsException for listTypeConverters JMX operation
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-2.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.20.x by this push:
new 84558c2 CAMEL-12293: Avoid KeyAlreadyExistsException for listTypeConverters JMX operation
84558c2 is described below
commit 84558c233362d9d430e90e99081c4895a8068a07
Author: James Netherton <ja...@gmail.com>
AuthorDate: Tue Feb 27 10:35:47 2018 +0000
CAMEL-12293: Avoid KeyAlreadyExistsException for listTypeConverters JMX operation
---
.../apache/camel/management/mbean/ManagedTypeConverterRegistry.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/camel-core/src/main/java/org/apache/camel/management/mbean/ManagedTypeConverterRegistry.java b/camel-core/src/main/java/org/apache/camel/management/mbean/ManagedTypeConverterRegistry.java
index 23a18df..c5a810e 100644
--- a/camel-core/src/main/java/org/apache/camel/management/mbean/ManagedTypeConverterRegistry.java
+++ b/camel-core/src/main/java/org/apache/camel/management/mbean/ManagedTypeConverterRegistry.java
@@ -114,7 +114,9 @@ public class ManagedTypeConverterRegistry extends ManagedService implements Mana
String from = entry[0].getCanonicalName();
String to = entry[1].getCanonicalName();
CompositeData data = new CompositeDataSupport(ct, new String[]{"from", "to"}, new Object[]{from, to});
- answer.put(data);
+ if (!answer.containsValue(data)) {
+ answer.put(data);
+ }
}
return answer;
} catch (Exception e) {
--
To stop receiving notification emails like this one, please contact
davsclaus@apache.org.