mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
[java-psi] Cleanup: remove redundant code (follow-up after IDEA-375067)
GitOrigin-RevId: 3fb27887b88011cb684b70527a9a8dc73c865d61
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b9e6544c21
commit
ad883180fe
@@ -27,15 +27,6 @@ public class JavaLightStubBuilder extends LightStubBuilder {
|
||||
if (!(file instanceof PsiJavaFile)) {
|
||||
return super.createStubForFile(file, tree);
|
||||
}
|
||||
|
||||
String refText = "";
|
||||
LighterASTNode pkg = LightTreeUtil.firstChildOfType(tree, tree.getRoot(), JavaElementType.PACKAGE_STATEMENT);
|
||||
if (pkg != null) {
|
||||
LighterASTNode ref = LightTreeUtil.firstChildOfType(tree, pkg, JavaElementType.JAVA_CODE_REFERENCE);
|
||||
if (ref != null) {
|
||||
refText = JavaSourceUtil.getReferenceText(tree, ref);
|
||||
}
|
||||
}
|
||||
return new PsiJavaFileStubImpl((PsiJavaFile)file, null, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user