groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Trivial refactoring for MacroMethodsCache
Date Sun, 10 Dec 2017 13:34:40 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 52f06ad3e -> 0eeb6ba49


Trivial refactoring for MacroMethodsCache

(cherry picked from commit b93529e)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/0eeb6ba4
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/0eeb6ba4
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/0eeb6ba4

Branch: refs/heads/GROOVY_2_6_X
Commit: 0eeb6ba49413d3bbcbc6b4d27d272426fa6399a1
Parents: 52f06ad
Author: sunlan <sunlan@apache.org>
Authored: Sun Dec 10 21:33:56 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Sun Dec 10 21:34:31 2017 +0800

----------------------------------------------------------------------
 .../org/codehaus/groovy/macro/transform/MacroMethodsCache.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/0eeb6ba4/subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/transform/MacroMethodsCache.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/transform/MacroMethodsCache.java
b/subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/transform/MacroMethodsCache.java
index 89dd3a7..754bedc 100644
--- a/subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/transform/MacroMethodsCache.java
+++ b/subprojects/groovy-macro/src/main/groovy/org/codehaus/groovy/macro/transform/MacroMethodsCache.java
@@ -44,7 +44,7 @@ import java.util.WeakHashMap;
  */
 class MacroMethodsCache {
     private static final ClassNode MACRO_ANNOTATION_CLASS_NODE = ClassHelper.make(Macro.class);
-    private static final CommonCache<ClassLoader, Map<String, List<MethodNode>>>
CACHE = new CommonCache<>(new WeakHashMap<>());
+    private static final CommonCache<ClassLoader, Map<String, List<MethodNode>>>
CACHE = new CommonCache<ClassLoader, Map<String, List<MethodNode>>>(new
WeakHashMap<>());
 
     public static Map<String, List<MethodNode>> get(final ClassLoader classLoader)
{
         return CACHE.getAndPut(classLoader, new EvictableCache.ValueProvider<ClassLoader,
Map<String, List<MethodNode>>>() {


Mime
View raw message