mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove deprecated getContainer()
This commit is contained in:
@@ -563,14 +563,6 @@ public class ClsClassImpl extends ClsMemberImpl<PsiClassStub<?>> implements PsiE
|
||||
return PsiClassImplUtil.getClassUseScope(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PsiQualifiedNamedElement getContainer() {
|
||||
final PsiFile file = getContainingFile();
|
||||
final PsiDirectory dir;
|
||||
return file == null ? null : (dir = file.getContainingDirectory()) == null
|
||||
? null : JavaDirectoryService.getInstance().getPackage(dir);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void putInfo(@NotNull Map<String, String> info) {
|
||||
PsiClassImpl.putInfo(this, info);
|
||||
|
||||
@@ -421,9 +421,4 @@ public class PsiPackageImpl extends PsiPackageBase implements PsiPackage, Querya
|
||||
public boolean hasModifierProperty(@NonNls @NotNull final String name) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PsiQualifiedNamedElement getContainer() {
|
||||
return getParentPackage();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -652,14 +652,6 @@ public class PsiClassImpl extends JavaStubPsiElement<PsiClassStub<?>> implements
|
||||
return PsiClassImplUtil.getClassUseScope(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public PsiQualifiedNamedElement getContainer() {
|
||||
final PsiFile file = getContainingFile();
|
||||
final PsiDirectory dir = file.getContainingDirectory();
|
||||
return dir == null ? null : JavaDirectoryService.getInstance().getPackage(dir);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void putInfo(@NotNull Map<String, String> info) {
|
||||
putInfo(this, info);
|
||||
|
||||
@@ -49,13 +49,4 @@ public interface PsiQualifiedNamedElement extends PsiNamedElement {
|
||||
@Nullable
|
||||
@NonNls
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Returns container of the element.
|
||||
*
|
||||
* @return container of the element
|
||||
*/
|
||||
@Deprecated
|
||||
@Nullable
|
||||
PsiQualifiedNamedElement getContainer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user