mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
implicit to string search: check method before search (wrap with read action)
This commit is contained in:
@@ -182,7 +182,7 @@ public class JavaFindUsagesHelper {
|
||||
FunctionalExpressionSearch.search(psiMethod, methodOptions.searchScope).forEach(new PsiElementProcessorAdapter<>(
|
||||
expression -> addResult(expression, options, processor)));
|
||||
}
|
||||
if (ImplicitToStringSearch.isToStringMethod(psiMethod) && methodOptions.isImplicitToString) {
|
||||
if (ReadAction.compute(() -> ImplicitToStringSearch.isToStringMethod(psiMethod)) && methodOptions.isImplicitToString) {
|
||||
ImplicitToStringSearch.search(psiMethod, methodOptions.searchScope).forEach(new PsiElementProcessorAdapter<>(ref -> addResult(ref, options, processor)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user