IDEA-359853 deprecate BasicJavaLexer

GitOrigin-RevId: a99c6627196d7a53fbfc6decc020a56e8cd2c806
This commit is contained in:
Max Medvedev
2025-03-14 11:00:36 +01:00
committed by intellij-monorepo-bot
parent d6bc6fed59
commit 977ef7385c
3 changed files with 14 additions and 0 deletions

View File

@@ -14,6 +14,11 @@ import org.jetbrains.annotations.Nullable;
import java.io.IOException;
/**
* @deprecated Use the new Java syntax library instead.
* See {@link com.intellij.java.syntax.parser.JavaParser}
*/
@Deprecated
public class BasicJavaLexer extends LexerBase {
private static final int STATE_DEFAULT = 0;

View File

@@ -10,6 +10,11 @@ import org.jetbrains.annotations.NotNull;
import java.io.IOException;
/**
* @deprecated Use the new Java syntax library instead.
* See {@link com.intellij.java.syntax.parser.JavaParser}
*/
@Deprecated
public class JavaDocLexer extends MergingLexerAdapter {
public JavaDocLexer(@NotNull LanguageLevel level) {
this(JavaDocTokenTypes.INSTANCE, level.isAtLeast(LanguageLevel.JDK_1_5));

View File

@@ -13,7 +13,11 @@ import com.intellij.psi.tree.IElementType;
* In reference links, array types are escaped: "char\[\]" which the JavaLexer doesn't like
* <p>
* It does this by <em>covering up</em> a <i>BAD_CHARACTER</i> token if followed by <i>[</i> or <i>]</i>
*
* @deprecated Use the new Java syntax library instead.
* See {@link com.intellij.java.syntax.parser.JavaParser}
*/
@Deprecated
public class JavaTypeEscapeLexer extends MergingLexerAdapterBase {
private final MergeFunction myMergeFunction = new EscapeMarkdownFunction();