camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] camel git commit: Fixed CS. This closes #1152
Date Mon, 05 Sep 2016 07:17:32 GMT
Fixed CS. This closes #1152


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3ee311ab
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3ee311ab
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3ee311ab

Branch: refs/heads/master
Commit: 3ee311ab8790f743b1e7b85ed02bb3c53cfe339d
Parents: dfb4960
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Sep 5 09:17:14 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Sep 5 09:17:14 2016 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/camel/impl/DefaultCamelContext.java  | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3ee311ab/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
index 92935d9..8cf7a78 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
@@ -407,17 +407,16 @@ public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon
     }
 
     public Component getComponent(String name, boolean autoCreateComponents, boolean autoStart)
{
-        // CAMEL-10269 : Atomic operation to get/create a component. Avoid global locks.
+        // atomic operation to get/create a component. Avoid global locks.
         return components.computeIfAbsent(name, comp -> initComponent(name, autoCreateComponents,
autoStart));
     }
     
-    /*
-     * CAMEL-10269
+    /**
      * Function to initialize a component and auto start. Returns null if the autoCreateComponents
is disabled
      */
     private Component initComponent(String name, boolean autoCreateComponents, boolean autoStart)
{
         Component component = null;
-        if(autoCreateComponents) {
+        if (autoCreateComponents) {
             try {
                 if (log.isDebugEnabled()) {
                     log.debug("Using ComponentResolver: {} to resolve component with name:
{}", getComponentResolver(), name);


Mime
View raw message