BaseExternalAnnotationsManager: a bit faster file search with less garbage

This commit is contained in:
peter
2013-06-25 19:29:40 +02:00
parent dfb48bdc39
commit f1cc522125
@@ -302,7 +302,7 @@ public abstract class BaseExternalAnnotationsManager extends ExternalAnnotations
Set<PsiFile> possibleAnnotationsXmls = new THashSet<PsiFile>();
for (VirtualFile root : getExternalAnnotationsRoots(virtualFile)) {
final VirtualFile ext = root.findFileByRelativePath(packageName.replace(".", "/") + "/" + ANNOTATIONS_XML);
final VirtualFile ext = root.findFileByRelativePath(packageName.replace('.', '/') + "/" + ANNOTATIONS_XML);
if (ext == null) continue;
final PsiFile psiFile = myPsiManager.findFile(ext);
if (psiFile == null) continue;