mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 14:16:11 +00:00
Fix for issue #264: use of @Delegate would cause memory leaks in eclipse.
This commit is contained in:
1 parent
f37e2fd760
commit
41abd976af
1 file changed
+2
-1
@@ -32,6 +32,7 @@ import java.util.IdentityHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
import lombok.core.AST.Kind;
|
||||
import lombok.eclipse.Eclipse;
|
||||
@@ -177,7 +178,7 @@ public class PatchDelegate {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static Map<ASTNode, Object> alreadyApplied = new IdentityHashMap<ASTNode, Object>();
|
||||
private static Map<ASTNode, Object> alreadyApplied = new WeakHashMap<ASTNode, Object>();
|
||||
private static final Object MARKER = new Object();
|
||||
|
||||
private static void fillMethodBindings(CompilationUnitDeclaration cud, ClassScope scope, List<BindingTuple> methodsToDelegate) {
|
||||
|
||||
Reference in new issue
Block a user