mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -112,7 +112,7 @@ public class PsiClassConverter extends Converter<PsiClass> implements CustomRefe
|
||||
if (virtualFile == null) return null;
|
||||
ProjectFileIndex fileIndex = ProjectRootManager.getInstance(file.getProject()).getFileIndex();
|
||||
boolean tests = fileIndex.isInTestSourceContent(virtualFile);
|
||||
return module.getModuleRuntimeScope(tests).union(module.getModuleWithDependenciesAndLibrariesScope(tests));
|
||||
return module.getModuleRuntimeScope(tests);
|
||||
}
|
||||
|
||||
public static class AnnotationType extends PsiClassConverter {
|
||||
|
||||
@@ -51,7 +51,7 @@ public class DomJavaUtil {
|
||||
else {
|
||||
ProjectFileIndex fileIndex = ProjectRootManager.getInstance(file.getProject()).getFileIndex();
|
||||
boolean tests = fileIndex.isInTestSourceContent(virtualFile);
|
||||
scope = module.getModuleRuntimeScope(tests).union(module.getModuleWithDependenciesAndLibrariesScope(tests));
|
||||
scope = module.getModuleRuntimeScope(tests);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -63,6 +63,6 @@ public abstract class ClassValueConverter extends Converter<PsiClass> implements
|
||||
}
|
||||
final boolean inTests = ProjectRootManager.getInstance(project).getFileIndex().isInTestSourceContent(file);
|
||||
|
||||
return module.getModuleRuntimeScope(inTests).union(module.getModuleWithDependenciesAndLibrariesScope(inTests));
|
||||
return module.getModuleRuntimeScope(inTests);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user