aboutsummaryrefslogtreecommitdiff
path: root/src/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-06-12 08:37:38 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-06-12 08:37:38 +0200
commit7d24f9c9a52861ced99f419edb07533f9b99a7ed (patch)
tree622022f053d6c835db661938cca61ee9c58a2d0d /src/lombok
parent0ef67926087ed2a6878e8b1c32f387b135c1d3df (diff)
downloadlombok-7d24f9c9a52861ced99f419edb07533f9b99a7ed.tar.gz
lombok-7d24f9c9a52861ced99f419edb07533f9b99a7ed.tar.bz2
lombok-7d24f9c9a52861ced99f419edb07533f9b99a7ed.zip
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.
Diffstat (limited to 'src/lombok')
-rw-r--r--src/lombok/eclipse/EclipseAST.java2
1 files changed, 1 insertions, 1 deletions
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<Class<?>, Collection<FieldAccess>> fieldsOfASTClasses = new HashMap<Class<?>, Collection<FieldAccess>>();
+ private static Map<Class<?>, Collection<FieldAccess>> fieldsOfASTClasses = new HashMap<Class<?>, Collection<FieldAccess>>();
private Collection<FieldAccess> fieldsOf(Class<?> c) {
Collection<FieldAccess> fields = fieldsOfASTClasses.get(c);
if ( fields != null ) return fields;