mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JavaResolveUtil: avoid isValid check
This commit is contained in:
@@ -279,10 +279,6 @@ public class JavaResolveUtil {
|
||||
boolean needToPreventRecursion,
|
||||
boolean incompleteCode,
|
||||
@NotNull PsiFile containingFile) {
|
||||
boolean valid = containingFile.isValid();
|
||||
if (!valid) {
|
||||
return JavaResolveResult.EMPTY_ARRAY;
|
||||
}
|
||||
Project project = containingFile.getProject();
|
||||
ResolveResult[] results = ResolveCache.getInstance(project).resolveWithCaching(ref, resolver, needToPreventRecursion, incompleteCode,
|
||||
containingFile);
|
||||
|
||||
Reference in New Issue
Block a user