[java] API cleanup: mark for removal deprecated unused API (IJPL-178044)

GitOrigin-RevId: 2aa137195af375b84adec0b7c350d6ae256eef53
This commit is contained in:
Nikolay Chashnikov
2025-06-04 12:20:13 +02:00
committed by intellij-monorepo-bot
parent 52b3a1798b
commit c2d557e204
8 changed files with 15 additions and 6 deletions

View File

@@ -27,6 +27,7 @@ import com.intellij.psi.tree.TokenSet;
import com.intellij.psi.util.CachedValueProvider;
import com.intellij.psi.util.CachedValuesManager;
import com.intellij.psi.util.PsiUtil;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.PropertyKey;
@@ -69,6 +70,7 @@ public final class JavaParserUtil {
/**
* @deprecated please, use {@link WhiteSpaceAndCommentSetHolder#INSTANCE} instead
*/
@ApiStatus.ScheduledForRemoval
@Deprecated
public static final WhitespacesAndCommentsBinder PRECEDING_COMMENT_BINDER =
WhiteSpaceAndCommentSetHolder.INSTANCE.getPrecedingCommentBinder(LanguageLevel.HIGHEST);
@@ -76,6 +78,7 @@ public final class JavaParserUtil {
/**
* @deprecated please, use {@link WhiteSpaceAndCommentSetHolder#INSTANCE} instead
*/
@ApiStatus.ScheduledForRemoval
@Deprecated
public static final WhitespacesAndCommentsBinder SPECIAL_PRECEDING_COMMENT_BINDER =
WhiteSpaceAndCommentSetHolder.INSTANCE.getSpecialPrecedingCommentBinder(LanguageLevel.HIGHEST);
@@ -83,6 +86,7 @@ public final class JavaParserUtil {
/**
* @deprecated please, use {@link WhiteSpaceAndCommentSetHolder#INSTANCE} instead
*/
@ApiStatus.ScheduledForRemoval
@Deprecated
public static final WhitespacesAndCommentsBinder TRAILING_COMMENT_BINDER =
WhiteSpaceAndCommentSetHolder.INSTANCE.getTrailingCommentBinder();

View File

@@ -13,6 +13,7 @@ import org.jetbrains.annotations.NotNull;
public class ReferenceParser extends BasicReferenceParser {
/** @deprecated use {@link BasicReferenceParser#EAT_LAST_DOT} instead **/
@ApiStatus.ScheduledForRemoval
@Deprecated
public static final int EAT_LAST_DOT = 0x01;
/** @deprecated use {@link BasicReferenceParser#ELLIPSIS} instead **/
@@ -20,6 +21,7 @@ public class ReferenceParser extends BasicReferenceParser {
@Deprecated
public static final int ELLIPSIS = 0x02;
/** @deprecated use {@link BasicReferenceParser#WILDCARD} instead **/
@ApiStatus.ScheduledForRemoval
@Deprecated
public static final int WILDCARD = 0x04;
/** @deprecated use {@link BasicReferenceParser#DIAMONDS} instead **/

View File

@@ -32,6 +32,7 @@ import com.intellij.util.containers.ConcurrentFactoryMap;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.messages.MessageBus;
import kotlinx.coroutines.CoroutineScope;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -70,6 +71,7 @@ public final class JavaPsiFacadeImpl extends JavaPsiFacadeEx {
/**
* @deprecated Use {@link JavaPsiFacade#getInstance(Project)}
*/
@ApiStatus.ScheduledForRemoval
@Deprecated
public JavaPsiFacadeImpl(@NotNull Project project) {
this(project, null);