diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-06-21 13:59:37 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-06-25 23:06:10 +0200 |
commit | faa682b41620d76796a4196e51fd2e2603c349a6 (patch) | |
tree | a6c99281dd3662354cf6ea1a6a1909deca9a222c /src/eclipseAgent/lombok | |
parent | e75517d561790bf8ee01763a1c75e091d03132e9 (diff) | |
download | lombok-faa682b41620d76796a4196e51fd2e2603c349a6.tar.gz lombok-faa682b41620d76796a4196e51fd2e2603c349a6.tar.bz2 lombok-faa682b41620d76796a4196e51fd2e2603c349a6.zip |
Do not resolve type if the name does not match
Diffstat (limited to 'src/eclipseAgent/lombok')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java index ebd60ce9..1a287d93 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java @@ -321,6 +321,8 @@ public class PatchDelegate { private static boolean isDelegate(Annotation ann, TypeDeclaration decl) { if (ann.type == null) return false; + if (!charArrayEquals("Delegate", ann.type.getLastToken())) return false; + TypeBinding tb = ann.type.resolveType(decl.initializerScope); if (tb == null) return false; if (!charArrayEquals("lombok", tb.qualifiedPackageName()) && !charArrayEquals("lombok.experimental", tb.qualifiedPackageName())) return false; |