CAMEL-8994: Use 16 as initial capacity in LRUCache by default.

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

Branch: refs/heads/camel-2.15.x
Commit: 5640ba76df39de3daa2fcf6634c50b58a3663546
Parents: a3b216d
Author: Claus Ibsen <davscl...@apache.org>
Authored: Wed Jul 22 10:10:03 2015 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Wed Jul 22 10:10:28 2015 +0200

----------------------------------------------------------------------
 camel-core/src/main/java/org/apache/camel/util/LRUCache.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/5640ba76/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java 
b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
index 9599cac..07d36e1 100644
--- a/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
+++ b/camel-core/src/main/java/org/apache/camel/util/LRUCache.java
@@ -56,7 +56,7 @@ public class LRUCache<K, V> implements Map<K, V>, 
EvictionListener<K, V>, Serial
      * @throws IllegalArgumentException if the initial capacity is negative
      */
     public LRUCache(int maximumCacheSize) {
-        this(maximumCacheSize, maximumCacheSize);
+        this(16, maximumCacheSize); // 16 is the default initial capacity in 
ConcurrentLinkedHashMap
     }
 
     /**

Reply via email to