mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
rollback
This commit is contained in:
@@ -1035,31 +1035,14 @@ public final class PsiUtil {
|
||||
myNextObtained = true;
|
||||
return;
|
||||
}
|
||||
if (myCurrentOwner.hasModifierProperty(PsiModifier.STATIC)) {
|
||||
if (myCurrentOwner.hasModifierProperty(PsiModifier.STATIC) || myCurrentOwner.getContainingClass() == null) {
|
||||
myNext = null;
|
||||
myNextObtained = true;
|
||||
return;
|
||||
}
|
||||
|
||||
final PsiClass containingClass = myCurrentOwner.getContainingClass();
|
||||
if (containingClass == null) {
|
||||
final PsiTypeParameterListOwner owner = PsiTreeUtil.getContextOfType(myCurrentOwner, PsiTypeParameterListOwner.class, true);
|
||||
if (owner != null) {
|
||||
myCurrentOwner = owner;
|
||||
obtainCurrentParams(myCurrentOwner);
|
||||
nextElement();
|
||||
}
|
||||
else {
|
||||
myNext = null;
|
||||
myNextObtained = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
myCurrentOwner = containingClass;
|
||||
obtainCurrentParams(myCurrentOwner);
|
||||
nextElement();
|
||||
}
|
||||
myCurrentOwner = myCurrentOwner.getContainingClass();
|
||||
obtainCurrentParams(myCurrentOwner);
|
||||
nextElement();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user