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 2015/07/22 10:04:29 UTC

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

Repository: camel
Updated Branches:
  refs/heads/camel-2.14.x 10e9a9b87 -> 24e197e46


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

Branch: refs/heads/camel-2.14.x
Commit: 24e197e46d80e63bfebcbce9f419507220443b0d
Parents: 10e9a9b
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Jul 22 10:10:03 2015 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Jul 22 10:11:25 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/24e197e4/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 4431334..260c096 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
@@ -55,7 +55,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
     }
 
     /**