mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-137302 Editor marks import in JSP as unused even when it's used
This commit is contained in:
+2
-1
@@ -17,10 +17,11 @@ package com.intellij.psi.impl.source.jsp.jspJava;
|
||||
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.PsiImportStatement;
|
||||
import com.intellij.psi.SyntheticElement;
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
*/
|
||||
public interface JspxImportStatement extends PsiImportStatement {
|
||||
public interface JspxImportStatement extends PsiImportStatement, SyntheticElement {
|
||||
PsiFile getDeclarationFile();
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public abstract class PsiAnchor {
|
||||
PsiAnchor stubRef = createStubReference(element, file);
|
||||
if (stubRef != null) return stubRef;
|
||||
|
||||
if (!element.isPhysical() && element instanceof PsiCompiledElement|| element instanceof LightElement) {
|
||||
if (!element.isPhysical() && element instanceof PsiCompiledElement || element instanceof LightElement || element instanceof SyntheticElement) {
|
||||
return new HardReference(element);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user