Make sure ref element iteration is performed in some locality friendly order.

This commit is contained in:
Maxim Shafirov
2012-04-09 18:53:21 +04:00
parent c92ec2f35e
commit 3efaa00bc9
2 changed files with 9 additions and 7 deletions
@@ -33,6 +33,8 @@ import gnu.trove.THashMap;
import org.jdom.Element;
import org.jetbrains.annotations.Nullable;
import java.util.Map;
/**
* @author anna
* Date: 20-Dec-2007
@@ -133,7 +135,7 @@ public class RefJavaManagerImpl extends RefJavaManager {
refPackage.accept(visitor);
}
}
final THashMap<PsiAnchor, RefElement> refTable = myRefManager.getRefTable();
final Map<PsiAnchor, RefElement> refTable = myRefManager.getRefTable();
for (RefElement refElement : refTable.values()) {
if (refElement instanceof RefClass) {
RefClass refClass = (RefClass)refElement;