mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
affected tests: detect containing module by class as method may belong to the super class in another module
This commit is contained in:
@@ -19,7 +19,6 @@ import com.intellij.execution.Location;
|
||||
import com.intellij.execution.PsiLocation;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.module.ModuleUtil;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.psi.PsiClass;
|
||||
import com.intellij.psi.PsiElement;
|
||||
@@ -63,7 +62,7 @@ public class MethodLocation extends Location<PsiMethod> {
|
||||
@Nullable
|
||||
@Override
|
||||
public Module getModule() {
|
||||
return ModuleUtil.findModuleForPsiElement(myMethod);
|
||||
return myClassLocation.getModule();
|
||||
}
|
||||
|
||||
public PsiClass getContainingClass() {
|
||||
|
||||
Reference in New Issue
Block a user