diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-12-13 06:26:40 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2011-12-13 06:26:40 +0100 |
commit | 6b91620d9efab992ee8e909b3e7b9cac0ac6f607 (patch) | |
tree | abf94f6b5520a2b08cf7f49060235c1722e91077 /src/core/lombok/eclipse/HandlerLibrary.java | |
parent | 6ccec72c7eb2b673cd534ec12bd44bcf28016b46 (diff) | |
download | lombok-6b91620d9efab992ee8e909b3e7b9cac0ac6f607.tar.gz lombok-6b91620d9efab992ee8e909b3e7b9cac0ac6f607.tar.bz2 lombok-6b91620d9efab992ee8e909b3e7b9cac0ac6f607.zip |
Refactored the type resolver, and made the 'find locally named classes that shadow' feature way better; previously it would only find very few locally named classes (your own class and any parent outers, that was it, no siblings).
Diffstat (limited to 'src/core/lombok/eclipse/HandlerLibrary.java')
-rw-r--r-- | src/core/lombok/eclipse/HandlerLibrary.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/HandlerLibrary.java b/src/core/lombok/eclipse/HandlerLibrary.java index 197d7a7e..5c75c071 100644 --- a/src/core/lombok/eclipse/HandlerLibrary.java +++ b/src/core/lombok/eclipse/HandlerLibrary.java @@ -173,11 +173,11 @@ public class HandlerLibrary { String pkgName = annotationNode.getPackageDeclaration(); Collection<String> imports = annotationNode.getImportStatements(); - TypeResolver resolver = new TypeResolver(typeLibrary, pkgName, imports); + TypeResolver resolver = new TypeResolver(pkgName, imports); TypeReference rawType = annotation.type; if (rawType == null) return; - for (String fqn : resolver.findTypeMatches(annotationNode, toQualifiedName(annotation.type.getTypeName()))) { + for (String fqn : resolver.findTypeMatches(annotationNode, typeLibrary, toQualifiedName(annotation.type.getTypeName()))) { boolean isPrintAST = fqn.equals(PrintAST.class.getName()); if (isPrintAST == skipPrintAst) continue; AnnotationHandlerContainer<?> container = annotationHandlers.get(fqn); |