mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
no casts
This commit is contained in:
@@ -31,6 +31,7 @@ import com.intellij.psi.impl.source.PsiJavaFileImpl;
|
||||
import com.intellij.psi.impl.source.tree.JavaElementType;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import com.intellij.psi.tree.IFileElementType;
|
||||
import com.intellij.psi.tree.IStubFileElementType;
|
||||
import com.intellij.psi.tree.TokenSet;
|
||||
import com.intellij.psi.util.PsiUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -40,7 +41,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
*/
|
||||
public class JavaParserDefinition implements ParserDefinition {
|
||||
|
||||
public static final IFileElementType JAVA_FILE = new JavaFileElementType();
|
||||
public static final IStubFileElementType JAVA_FILE = new JavaFileElementType();
|
||||
|
||||
@NotNull
|
||||
public Lexer createLexer(Project project) {
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PsiJavaFileStubImpl extends PsiFileStubImpl<PsiJavaFile> implements
|
||||
}
|
||||
|
||||
public IStubFileElementType getType() {
|
||||
return (IStubFileElementType)JavaParserDefinition.JAVA_FILE;
|
||||
return JavaParserDefinition.JAVA_FILE;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"HardCodedStringLiteral"})
|
||||
|
||||
Reference in New Issue
Block a user