You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2018/03/01 17:21:20 UTC
groovy git commit: Cleanup the code of `LRUCache`
Repository: groovy
Updated Branches:
refs/heads/master 7cf557578 -> 573a0ff76
Cleanup the code of `LRUCache`
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/573a0ff7
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/573a0ff7
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/573a0ff7
Branch: refs/heads/master
Commit: 573a0ff763d73856cf22352295f47860907e551c
Parents: 7cf5575
Author: danielsun1106 <re...@hotmail.com>
Authored: Fri Mar 2 01:21:15 2018 +0800
Committer: danielsun1106 <re...@hotmail.com>
Committed: Fri Mar 2 01:21:15 2018 +0800
----------------------------------------------------------------------
src/main/java/org/codehaus/groovy/runtime/memoize/LRUCache.java | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/573a0ff7/src/main/java/org/codehaus/groovy/runtime/memoize/LRUCache.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/codehaus/groovy/runtime/memoize/LRUCache.java b/src/main/java/org/codehaus/groovy/runtime/memoize/LRUCache.java
index 967641d..63dc43a 100644
--- a/src/main/java/org/codehaus/groovy/runtime/memoize/LRUCache.java
+++ b/src/main/java/org/codehaus/groovy/runtime/memoize/LRUCache.java
@@ -37,7 +37,6 @@ public final class LRUCache<K, V> implements MemoizeCache<K, V> {
private final ConcurrentMap<K, V> map;
public LRUCache(final int maxCacheSize) {
-// cache = Collections.synchronizedMap(new LRUProtectionStorage(maxCacheSize));
map = new ConcurrentLinkedHashMap.Builder<K, V>()
.maximumWeightedCapacity(maxCacheSize)
.build();