Repository: camel
Updated Branches:
  refs/heads/camel-2.15.x a3b216df5 -> 5640ba76d
  refs/heads/master 542ab3e8c -> 473d1b28b


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/473d1b28
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/473d1b28
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/473d1b28

Branch: refs/heads/master
Commit: 473d1b28bbc3871aa04c89f6a603e0b760ea296a
Parents: 542ab3e
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:03 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/473d1b28/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