PY-15342 Use set as more natural container for scope owners of global statements

This commit is contained in:
Mikhail Golubev
2015-03-31 16:11:49 +03:00
parent acd9dbb721
commit ab891dacfb
@@ -34,7 +34,7 @@ public class PyMoveSymbolProcessor {
private final List<UsageInfo> myUsages;
private final PsiElement[] myAllMovedElements;
private final List<PsiFile> myOptimizeImportTargets = new ArrayList<PsiFile>();
private final List<ScopeOwner> myScopeOwnersWithGlobal = new ArrayList<ScopeOwner>();
private final Set<ScopeOwner> myScopeOwnersWithGlobal = new HashSet<ScopeOwner>();
public PyMoveSymbolProcessor(@NotNull final PsiNamedElement element,
@NotNull PyFile destination,