diff options
author | Roel Spilker <r.spilker@gmail.com> | 2012-01-24 02:52:13 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2012-01-24 02:52:13 +0100 |
commit | 2242de2bf9886fc80858486bbb3aa171a5496885 (patch) | |
tree | 36f6795f3e00b1ab122fb2c1ac6d201a1660c89f /src/eclipseAgent | |
parent | 3e7bb145d3984d7472baa177ead3baf574d42e6b (diff) | |
download | lombok-2242de2bf9886fc80858486bbb3aa171a5496885.tar.gz lombok-2242de2bf9886fc80858486bbb3aa171a5496885.tar.bz2 lombok-2242de2bf9886fc80858486bbb3aa171a5496885.zip |
Fix for issue 328: @Delegate on a field for which we also generate a getter will use the getter for delegation
Diffstat (limited to 'src/eclipseAgent')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java index 31ec52f4..87335b4e 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java @@ -188,6 +188,10 @@ public class PatchDelegate { private static Map<ASTNode, Object> alreadyApplied = new WeakHashMap<ASTNode, Object>(); private static final Object MARKER = new Object(); + public static void markHandled(Annotation annotation) { + alreadyApplied.put(annotation, MARKER); + } + private static void fillMethodBindingsForFields(CompilationUnitDeclaration cud, ClassScope scope, List<BindingTuple> methodsToDelegate) { TypeDeclaration decl = scope.referenceContext; if (decl == null) return; |