You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/02/23 16:19:39 UTC

[camel] branch main updated (83e88a68568 -> cb132e4a25d)

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

orpiske pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


    from 83e88a68568 [CAMEL-19075] camel-bean. Incorrect choice of overloaded method with several arguments, if one of them has brackets. (#9383)
     new 1ba6d60f31e CAMEL-18928: removed a reference for ActiveMQ from core
     new cb132e4a25d (chores) camel-core: use ThreadLocal.withInitial as it's simpler to

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/camel/impl/engine/AbstractCamelContext.java    | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)


[camel] 01/02: CAMEL-18928: removed a reference for ActiveMQ from core

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 1ba6d60f31e9a5e1ab8b915d0ff4ed0b2c26bba7
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 23 15:10:44 2023 +0100

    CAMEL-18928: removed a reference for ActiveMQ from core
---
 .../java/org/apache/camel/impl/engine/AbstractCamelContext.java   | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
index d87cfde10fd..7cecd227dfc 100644
--- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
+++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
@@ -1784,12 +1784,8 @@ public abstract class AbstractCamelContext extends BaseService
                 IOHelper.close(inputStream);
             }
         }
-        // special for ActiveMQ as it is really just JMS
-        if ("ActiveMQComponent".equals(clazz.getSimpleName())) {
-            return getComponentParameterJsonSchema("jms");
-        } else {
-            return null;
-        }
+
+        return null;
     }
 
     public String getDataFormatParameterJsonSchema(String dataFormatName) throws IOException {


[camel] 02/02: (chores) camel-core: use ThreadLocal.withInitial as it's simpler to

Posted by or...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit cb132e4a25d10ac49f6e2bb574c83766839a1270
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Feb 23 15:14:07 2023 +0100

    (chores) camel-core: use ThreadLocal.withInitial as it's simpler to
---
 .../java/org/apache/camel/impl/engine/AbstractCamelContext.java    | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
index 7cecd227dfc..f7c4c84d6f4 100644
--- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
+++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java
@@ -240,12 +240,7 @@ public abstract class AbstractCamelContext extends BaseService
     private final StopWatch stopWatch = new StopWatch(false);
     private final Map<Class<?>, Object> extensions = new ConcurrentHashMap<>();
     private Set<LogListener> logListeners;
-    private final ThreadLocal<Set<String>> componentsInCreation = new ThreadLocal<Set<String>>() {
-        @Override
-        public Set<String> initialValue() {
-            return new HashSet<>();
-        }
-    };
+    private final ThreadLocal<Set<String>> componentsInCreation = ThreadLocal.withInitial(() -> new HashSet<>());
     private VetoCamelContextStartException vetoed;
     private String managementName;
     private ClassLoader applicationContextClassLoader;