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

commit 034acccf79bcda6ec1890eaeaff209a5d4072c1d
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Jan 2 10:41:28 2020 +0100

    Polished
---
 .../camel/component/caffeine/lrucache/CaffeineLRUCacheFactory.java    | 4 +---
 .../main/java/org/apache/camel/support/DefaultLRUCacheFactory.java    | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/core/camel-caffeine-lrucache/src/main/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheFactory.java
 
b/core/camel-caffeine-lrucache/src/main/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheFactory.java
index 4bf3c11..4537caa 100644
--- 
a/core/camel-caffeine-lrucache/src/main/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheFactory.java
+++ 
b/core/camel-caffeine-lrucache/src/main/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheFactory.java
@@ -35,12 +35,10 @@ public final class CaffeineLRUCacheFactory extends 
LRUCacheFactory {
 
     private static final AtomicBoolean INIT = new AtomicBoolean();
 
-    private static final boolean USE_SIMPLE_CACHE = false;
-
     static {
         boolean warmUp = 
"true".equalsIgnoreCase(System.getProperty("CamelWarmUpLRUCacheFactory", 
"true"));
         if (warmUp) {
-            // warm-up LRUCache which happens in a background test, which can 
speedup starting Camel
+            // warm-up LRUCache which happens in a background thread, which 
can speedup starting Camel
             // as the warm-up can run concurrently with starting up Camel and 
the runtime container Camel may be running inside
             warmUp();
         }
diff --git 
a/core/camel-support/src/main/java/org/apache/camel/support/DefaultLRUCacheFactory.java
 
b/core/camel-support/src/main/java/org/apache/camel/support/DefaultLRUCacheFactory.java
index c75f5e7..9cded05 100644
--- 
a/core/camel-support/src/main/java/org/apache/camel/support/DefaultLRUCacheFactory.java
+++ 
b/core/camel-support/src/main/java/org/apache/camel/support/DefaultLRUCacheFactory.java
@@ -179,7 +179,7 @@ public class DefaultLRUCacheFactory extends LRUCacheFactory 
{
             // stop service as its evicted from cache
             ServiceHelper.stopService(value);
         } catch (Exception e) {
-            log.warn("Error stopping service: " + value + ". This exception 
will be ignored.", e);
+            log.warn("Error stopping service: {}. This exception will be 
ignored.", value, e);
         }
     }
 }

Reply via email to