move a bunch of migration-dependent stuff from PsiPackageImpl.processDeclarations() toi MigrationElementFinder

This commit is contained in:
Dmitry Jemerov
2011-10-04 16:03:49 +02:00
parent 3c4f5e75f0
commit a1e4086ca3
4 changed files with 27 additions and 16 deletions
@@ -81,7 +81,7 @@ public abstract class PsiElementFinder {
*/
@NotNull
public PsiPackage[] getSubPackages(@NotNull PsiPackage psiPackage, @NotNull GlobalSearchScope scope) {
return new PsiPackage[0];
return PsiPackage.EMPTY_ARRAY;
}
/**
@@ -26,6 +26,8 @@ import org.jetbrains.annotations.Nullable;
* Represents a Java package.
*/
public interface PsiPackage extends PsiCheckedRenameElement, NavigationItem, PsiModifierListOwner, PsiDirectoryContainer, PsiQualifiedNamedElement {
PsiPackage[] EMPTY_ARRAY = new PsiPackage[0];
/**
* Returns the full-qualified name of the package.
*