Commit 65d9370b authored by Dmitry Batkovich's avatar Dmitry Batkovich
Browse files

java compiler indices based inheritor search should not use "useScope"...

java compiler indices based inheritor search should not use "useScope" parameter (IDEA-184394) (cleanup, redundant parameter)
parent f41381e5
Showing with 1 addition and 3 deletions
+1 -3
......@@ -66,7 +66,7 @@ public class JavaDirectInheritorsSearcher implements QueryExecutor<PsiClass, Dir
SearchScope scope;
SearchScope useScope;
CompilerDirectHierarchyInfo info = performSearchUsingCompilerIndices(parameters, parameters.getScope(), project);
CompilerDirectHierarchyInfo info = performSearchUsingCompilerIndices(parameters, project);
if (info == null) {
scope = parameters.getScope();
useScope = ReadAction.compute(baseClass::getUseScope);
......@@ -273,9 +273,7 @@ public class JavaDirectInheritorsSearcher implements QueryExecutor<PsiClass, Dir
@Nullable
private static CompilerDirectHierarchyInfo performSearchUsingCompilerIndices(@NotNull DirectClassInheritorsSearch.SearchParameters parameters,
@NotNull SearchScope useScope,
@NotNull Project project) {
if (!(useScope instanceof GlobalSearchScope)) return null;
SearchScope scope = parameters.getScope();
if (!(scope instanceof GlobalSearchScope)) return null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment