mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
IDEADEV-22888: Do not optimize imports that cannot be resolved in JSP.
This commit is contained in:
@@ -94,6 +94,9 @@ public class LightClassReference extends LightElement implements PsiJavaCodeRefe
|
||||
@NotNull
|
||||
public JavaResolveResult advancedResolve(boolean incompleteCode){
|
||||
final PsiElement resolved = resolve();
|
||||
if (resolved == null) {
|
||||
return JavaResolveResult.EMPTY;
|
||||
}
|
||||
PsiSubstitutor substitutor = mySubstitutor;
|
||||
if (substitutor == null) {
|
||||
if (resolved instanceof PsiClass) {
|
||||
|
||||
Reference in New Issue
Block a user