From 7d24f9c9a52861ced99f419edb07533f9b99a7ed Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 12 Jun 2009 08:37:38 +0200 Subject: Removed the WeakHashMap for caching EclipseAST objects; obviously wasn't working due to circular reference from the EclipseAST back to the CUD. Now, patched a field into CompilationUnitDeclaration and using that, which works much better together with the garbage collector. --- src/lombok/eclipse/EclipseAST.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lombok/eclipse/EclipseAST.java b/src/lombok/eclipse/EclipseAST.java index 63815a99..161e8909 100644 --- a/src/lombok/eclipse/EclipseAST.java +++ b/src/lombok/eclipse/EclipseAST.java @@ -281,7 +281,7 @@ public class EclipseAST { this.dim = dim; } } - private Map, Collection> fieldsOfASTClasses = new HashMap, Collection>(); + private static Map, Collection> fieldsOfASTClasses = new HashMap, Collection>(); private Collection fieldsOf(Class c) { Collection fields = fieldsOfASTClasses.get(c); if ( fields != null ) return fields; -- cgit