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 2023/06/09 14:36:12 UTC

[camel] branch main updated: Fixed CS

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

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


The following commit(s) were added to refs/heads/main by this push:
     new f34880a1d03 Fixed CS
f34880a1d03 is described below

commit f34880a1d035fcaa2d2a34b0f362ddbf053709f5
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Jun 9 16:35:59 2023 +0200

    Fixed CS
---
 .../org/apache/camel/support/component/AbstractApiEndpoint.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiEndpoint.java b/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiEndpoint.java
index cfcb798a170..0192468d239 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiEndpoint.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/component/AbstractApiEndpoint.java
@@ -49,7 +49,7 @@ public abstract class AbstractApiEndpoint<E extends ApiName, T>
         implements ApiEndpoint, PropertyNamesInterceptor, PropertiesInterceptor {
 
     // thread pool executor with Endpoint Class name as keys
-    private static final Map<String, ExecutorService> executorServiceMap = new ConcurrentHashMap<>();
+    private static final Map<String, ExecutorService> EXECUTOR_SERVICE_MAP = new ConcurrentHashMap<>();
 
     // logger
     protected final Logger log = LoggerFactory.getLogger(getClass());
@@ -311,7 +311,7 @@ public abstract class AbstractApiEndpoint<E extends ApiName, T>
 
         // lookup executorService for extending class name
         final String endpointClassName = endpointClass.getName();
-        ExecutorService executorService = executorServiceMap.get(endpointClassName);
+        ExecutorService executorService = EXECUTOR_SERVICE_MAP.get(endpointClassName);
 
         // CamelContext will shutdown thread pool when it shutdown so we can
         // lazy create it on demand
@@ -330,7 +330,7 @@ public abstract class AbstractApiEndpoint<E extends ApiName, T>
             // create a new pool using the custom or default profile
             executorService = manager.newScheduledThreadPool(endpointClass, threadProfileName, poolProfile);
 
-            executorServiceMap.put(endpointClassName, executorService);
+            EXECUTOR_SERVICE_MAP.put(endpointClassName, executorService);
         }
 
         return executorService;