[API] remove inVersion attribute from @ApiStatus.ScheduledForRemoval to avoid confusion (IDEA-288466)

GitOrigin-RevId: 861789b61fce6b99fb61db38bef66dceb42c40f7
This commit is contained in:
Nikolay Chashnikov
2022-02-18 09:35:09 +00:00
committed by intellij-monorepo-bot
parent 110964efac
commit bcf5757d44
125 changed files with 211 additions and 211 deletions
@@ -723,7 +723,7 @@ public class AnnotationUtil {
{"NotNull", "Nullable", "NonNls", "PropertyKey", "TestOnly", "Language", "Identifier", "Pattern", "PrintFormat", "RegExp", "Subst"};
/** @deprecated simple name is not enough for reliable identification */
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public static boolean isJetbrainsAnnotation(@NotNull String simpleName) {
return ArrayUtil.find(SIMPLE_NAMES, simpleName) != -1;
@@ -731,21 +731,21 @@ public class AnnotationUtil {
/** @deprecated use {@link #isAnnotated(PsiModifierListOwner, Collection, int)} */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
public static boolean isAnnotated(@NotNull PsiModifierListOwner listOwner, @NotNull Collection<String> annotations) {
return isAnnotated(listOwner, annotations, CHECK_TYPE);
}
/** @deprecated use {@link #isAnnotated(PsiModifierListOwner, String, int)} */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
public static boolean isAnnotated(@NotNull PsiModifierListOwner listOwner, @NotNull String annotationFQN, boolean checkHierarchy) {
return isAnnotated(listOwner, annotationFQN, flags(checkHierarchy, true, true));
}
/** @deprecated use {@link #isAnnotated(PsiModifierListOwner, String, int)} */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
public static boolean isAnnotated(@NotNull PsiModifierListOwner listOwner,
@NotNull String annotationFQN,
boolean checkHierarchy,
@@ -60,7 +60,7 @@ public abstract class NullableNotNullManager {
* Returns an annotation which marks given element as Nullable, if any.
* @deprecated use {@link #findEffectiveNullabilityInfo(PsiModifierListOwner)} instead.
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@Deprecated
public @Nullable PsiAnnotation getNullableAnnotation(@NotNull PsiModifierListOwner owner, boolean checkBases) {
NullabilityAnnotationInfo info = findEffectiveNullabilityInfo(owner);
@@ -77,7 +77,7 @@ public abstract class NullableNotNullManager {
* Returns an annotation which marks given element as NotNull, if any.
* @deprecated use {@link #findEffectiveNullabilityInfo(PsiModifierListOwner)} instead.
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@Deprecated
public @Nullable PsiAnnotation getNotNullAnnotation(@NotNull PsiModifierListOwner owner, boolean checkBases) {
NullabilityAnnotationInfo info = findEffectiveNullabilityInfo(owner);
@@ -89,7 +89,7 @@ public abstract class JavaPsiFacade {
* @deprecated use {@link PsiNameHelper#getInstance(Project)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
public abstract PsiNameHelper getNameHelper();
@@ -134,7 +134,7 @@ public interface PsiAnnotation extends PsiAnnotationMemberValue, JvmAnnotation {
*/
@Nullable
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
default PsiMetaData getMetaData() {
return null;
}
@@ -62,7 +62,7 @@ public final class PsiPrimitiveType extends PsiType.Stub implements JvmPrimitive
* @deprecated please don't use {@link PsiPrimitiveType} to represent fake types
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public PsiPrimitiveType(@NotNull String name, PsiAnnotation @NotNull [] annotations) {
super(annotations);
myKind = null;
@@ -267,7 +267,7 @@ public final class PsiPrimitiveType extends PsiType.Stub implements JvmPrimitive
* @deprecated please use {@link JvmPrimitiveTypeKind#getBoxedFqns}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static Collection<String> getAllBoxedTypeNames() {
return JvmPrimitiveTypeKind.getBoxedFqns();
}
@@ -26,7 +26,7 @@ public interface PsiSwitchLabelStatementBase extends PsiStatement {
/** @deprecated doesn't support enhanced "switch" statements; use {@link #getCaseValues()} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
default PsiExpression getCaseValue() {
PsiExpressionList expressionList = getCaseValues();
if (expressionList != null) {
@@ -73,7 +73,7 @@ public abstract class PsiType implements PsiAnnotationOwner, Cloneable, JvmType
/** @deprecated use {@link #annotate(TypeAnnotationProvider)} */
@Deprecated
@NotNull
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public PsiArrayType createArrayType(PsiAnnotation @NotNull ... annotations) {
return new PsiArrayType(this, annotations);
}
@@ -9,28 +9,28 @@ import org.jetbrains.annotations.ApiStatus;
* @deprecated Use {@link JavaFileCodeStyleFacade} for per-file code-style-settings. Note: project settings
* may not be applicable to a particular file.
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public abstract class JavaCodeStyleSettingsFacade {
/**
* @deprecated Use {@link JavaFileCodeStyleFacade#useFQClassNames()}
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public abstract boolean useFQClassNames();
/**
* @deprecated Use {@link JavaFileCodeStyleFacade#isGenerateFinalParameters()}
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public abstract boolean isGenerateFinalParameters();
/**
* @deprecated Use {@link JavaFileCodeStyleFacade#forContext(PsiFile)} instead.
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public static JavaCodeStyleSettingsFacade getInstance(Project project) {
return project.getService(JavaCodeStyleSettingsFacade.class);
@@ -316,7 +316,7 @@ public final class PsiImplUtil {
* @deprecated types should be proceed by the callers themselves
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static PsiType normalizeWildcardTypeByPosition(@NotNull PsiType type, @NotNull PsiExpression expression) {
PsiUtil.ensureValidType(type);
@@ -7,7 +7,7 @@ import org.jetbrains.annotations.NotNull;
/** @deprecated use {@link ClsCustomNavigationPolicy} directly */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@SuppressWarnings("DeprecatedIsStillUsed")
public abstract class ClsCustomNavigationPolicyEx implements ClsCustomNavigationPolicy {
public PsiFile getFileNavigationElement(@NotNull ClsFileImpl file) {
@@ -148,6 +148,6 @@ public interface JavaStubElementTypes {
/**
* @deprecated use {@link JavaParserDefinition#JAVA_FILE}
*/
@Deprecated @ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@Deprecated @ApiStatus.ScheduledForRemoval
IStubFileElementType<?> JAVA_FILE = JavaParserDefinition.JAVA_FILE;
}
@@ -31,6 +31,6 @@ public interface PsiClassStub<T extends PsiClass> extends PsiMemberStub<T> {
/** @deprecated use {@link PsiJavaFileStub#getLanguageLevel()}; do not override */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
default LanguageLevel getLanguageLevel() { return null; }
}
@@ -18,6 +18,6 @@ public interface PsiJavaFileStub extends PsiClassHolderFileStub<PsiJavaFile> {
/** @deprecated override {@link #getPsiFactory()} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
void setPsiFactory(StubPsiFactory factory);
}
@@ -220,7 +220,7 @@ public final class LightJavaModule extends LightElement implements PsiJavaModule
/** @deprecated caching problems; please consider using {@code JavaModuleGraphUtil} methods instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.2")
@ApiStatus.ScheduledForRemoval
public static @Nullable LightJavaModule findModule(@NotNull PsiManager manager, @NotNull VirtualFile root) {
PsiElement directory = manager.findDirectory(root);
if (directory == null) return null;
@@ -38,7 +38,7 @@ public class PsiResolveHelperImpl implements PsiResolveHelper {
* @deprecated Use {@link #PsiResolveHelperImpl(Project)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public PsiResolveHelperImpl(@NotNull PsiManager manager) {
myManager = manager;
}
@@ -148,7 +148,7 @@ public class PsiLiteralExpressionImpl
* @deprecated use {@link PsiLiteralUtil#getStringLiteralContent(PsiLiteralExpression)} instead.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.2")
@ApiStatus.ScheduledForRemoval
@Nullable
public String getInnerText() {
return PsiLiteralUtil.getStringLiteralContent(this);
@@ -80,7 +80,7 @@ public final class OutputFileObject extends JpsFileObject {
* @deprecated In general, an output object may be generated from several source files. Use {@link OutputFileObject#getSourceFiles()} method instead.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@Nullable
public File getSourceFile() {
final Iterator<File> it = getSourceFiles().iterator();
@@ -37,7 +37,7 @@ public interface BuildTargetIndex extends BuildTargetRegistry {
* @deprecated use {@link #getDependencies(BuildTarget, CompileContext)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
Set<BuildTarget<?>> getDependenciesRecursively(@NotNull BuildTarget<?> target, @NotNull CompileContext context);
@NotNull
@@ -75,7 +75,7 @@ public abstract class AnnotationsChangeTracker {
/**
* @deprecated Use {@link AnnotationsChangeTracker#methodAnnotationsChanged(NamingContext, ProtoMethodEntity, Difference.Specifier, Difference.Specifier)}
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
@Deprecated // Make sure that Kotlin JPS plugin (located in kotlin repo) doesn't use this API before removing the API
@NotNull
public Set<Recompile> methodAnnotationsChanged(
@@ -113,7 +113,7 @@ public abstract class AnnotationsChangeTracker {
/**
* @deprecated Use {@link AnnotationsChangeTracker#fieldAnnotationsChanged(NamingContext, ProtoFieldEntity, Difference.Specifier)}
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
@Deprecated // Make sure that Kotlin JPS plugin (located in kotlin repo) doesn't use this API before removing the API
public Set<Recompile> fieldAnnotationsChanged(NamingContext context, FieldRepr field, Difference.Specifier<TypeRepr.ClassType, Difference> annotationsDiff) {
return RECOMPILE_NONE;
@@ -60,7 +60,7 @@ public final class FSOperations {
*
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static void markDirty(CompileContext context, final File file) throws IOException {
markDirty(context, CompilationRound.NEXT, file);
}
@@ -23,7 +23,7 @@ import org.jetbrains.annotations.NotNull;
* @deprecated please implement {@link FileNameMatcher} directly and define {@link #acceptsCharSequence(CharSequence)} there.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public abstract class FileNameMatcherEx implements FileNameMatcher {
/**
* @deprecated call {@link #acceptsCharSequence(CharSequence)} instead
@@ -30,7 +30,7 @@ public abstract class SharedThreadPool implements ExecutorService {
* @deprecated Use {@link #submit(Runnable)} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
public abstract Future<?> executeOnPooledThread(@NotNull Runnable action);
}
@@ -19,7 +19,7 @@ import java.util.Set;
public final class JavaSdkUtil {
/** @deprecated use {@link #getJdkClassesRoots(Path, boolean)} instead */
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public static @NotNull List<File> getJdkClassesRoots(@NotNull File home, boolean isJre) {
return ContainerUtil.map(getJdkClassesRoots(home.toPath(), isJre), Path::toFile);
@@ -45,7 +45,7 @@ public abstract class JpsArtifactExtensionSerializer<E extends JpsElement> {
* @deprecated the build process doesn't save project configuration so there is no need to implement this method, it isn't called by the platform
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public void saveExtension(@NotNull E extension, @NotNull Element optionsTag) {
}
}
@@ -42,7 +42,7 @@ public abstract class JpsPackagingElementSerializer<E extends JpsPackagingElemen
* @deprecated the build process doesn't save project configuration so there is no need to implement this method, it isn't called by the platform
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public void save(E element, Element tag) {
}
}
@@ -118,7 +118,7 @@ public abstract class PropertiesComponent {
* Init was never performed and in any case is not recommended.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public final int getOrInitInt(@NonNls @NotNull String name, int defaultValue) {
return getInt(name, defaultValue);
}
@@ -136,7 +136,7 @@ public abstract class PropertiesComponent {
* Init was never performed and in any case is not recommended.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public final long getOrInitLong(@NonNls @NotNull String name, long defaultValue) {
return getLong(name, defaultValue);
}
@@ -31,7 +31,7 @@ public class LanguageExtensionPoint<T> extends CustomLoadingExtensionPointBean<T
* @deprecated You must pass plugin descriptor, use {@link LanguageExtensionPoint#LanguageExtensionPoint(String, Object)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public LanguageExtensionPoint() {
}
@@ -60,7 +60,7 @@ public interface NavigationTarget {
* Please define your own interface if you need this method in your implementation.
*/
@Deprecated
@ScheduledForRemoval(inVersion = "2022.1")
@ScheduledForRemoval
default @NotNull Navigatable getNavigatable() {
return EmptyNavigatable.INSTANCE;
}
@@ -91,7 +91,7 @@ public abstract class ApplicationInfo {
/** @deprecated use {@link #getBuild()} */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
public String getBuildNumber() {
return getBuild().asString();
}
@@ -10,7 +10,7 @@ import org.jetbrains.annotations.NotNull;
* @deprecated Use {@link WriteAction#run(ThrowableRunnable)} or {@link ReadAction#run(ThrowableRunnable)} or similar method instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public abstract class BaseActionRunnable<T> {
protected abstract void run(@NotNull Result<? super T> result) throws Throwable;
@@ -39,7 +39,7 @@ public abstract class ReadAction<T> extends BaseActionRunnable<T> {
* @deprecated use {@link #run(ThrowableRunnable)} or {@link #compute(ThrowableComputable)} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2020.3")
@ApiStatus.ScheduledForRemoval
public static AccessToken start() {
return ApplicationManager.getApplication().acquireReadActionLock();
}
@@ -25,7 +25,7 @@ public abstract class WriteAction<T> extends BaseActionRunnable<T> {
/**
* @deprecated Use {@link #run(ThrowableRunnable)} or {@link #compute(ThrowableComputable)} or similar method instead
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public WriteAction() {
}
@@ -70,7 +70,7 @@ public abstract class WriteAction<T> extends BaseActionRunnable<T> {
*/
@Deprecated
@NotNull
@ApiStatus.ScheduledForRemoval(inVersion = "2020.3")
@ApiStatus.ScheduledForRemoval
public static AccessToken start() {
// get useful information about the write action
Class<?> callerClass = ObjectUtils.notNull(ReflectionUtil.getCallerClass(3), WriteAction.class);
@@ -117,6 +117,6 @@ public abstract class CommandProcessor {
* @deprecated use {@link CommandListener#TOPIC}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public abstract void removeCommandListener(@NotNull CommandListener listener);
}
@@ -287,7 +287,7 @@ public abstract class WriteCommandAction<T> extends BaseActionRunnable<T> {
* @deprecated Use {@link #writeCommandAction(Project)}.withGlobalUndo() instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
protected boolean isGlobalUndoAction() {
return false;
}
@@ -298,7 +298,7 @@ public abstract class WriteCommandAction<T> extends BaseActionRunnable<T> {
* @deprecated Use {@link #writeCommandAction(Project)}.withUndoConfirmationPolicy() instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
protected UndoConfirmationPolicy getUndoConfirmationPolicy() {
return UndoConfirmationPolicy.DO_NOT_REQUEST_CONFIRMATION;
@@ -23,20 +23,20 @@ import org.jetbrains.annotations.ApiStatus;
/**
* @deprecated Use {@link UndoUtil} instead
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public interface UndoConstants {
/**
* @deprecated Use {@link UndoUtil#forceUndoIn(VirtualFile, Runnable)} instead
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
Key<Boolean> FORCE_RECORD_UNDO = Key.create("FORCE_RECORD_UNDO");
/**
* @deprecated Use {@link UndoUtil#disableUndoIn(Document, Runnable)} instead
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
Key<Boolean> DONT_RECORD_UNDO = Key.create("DONT_RECORD_UNDO");
}
@@ -4,6 +4,6 @@ package com.intellij.openapi.components;
import org.jetbrains.annotations.ApiStatus;
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2020.2")
@ApiStatus.ScheduledForRemoval
public interface ExportableApplicationComponent extends ApplicationComponent, ExportableComponent {
}
@@ -31,7 +31,7 @@ public final class ServiceManager {
* @deprecated Use {@link ComponentManager#getServiceIfCreated(Class)}: {@code Application.getServiceIfCreated() / Project.getServiceIfCreated()}.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static @Nullable <T> T getServiceIfCreated(@NotNull Project project, @NotNull Class<T> serviceClass) {
return project.getServiceIfCreated(serviceClass);
}
@@ -45,7 +45,7 @@ public final class ServiceManager {
* @deprecated Don't use this method; it has no benefit over normal ServiceManager.getService
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static @NotNull <T> NotNullLazyKey<T, Project> createLazyKey(@NotNull Class<? extends T> serviceClass) {
return NotNullLazyKey.create("Service: " + serviceClass.getName(), project -> project.getService(serviceClass));
}
@@ -75,7 +75,7 @@ public interface Document extends UserDataHolder {
* @deprecated Use {@link #getCharsSequence()} or {@link #getText()} instead.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
default char @NotNull [] getChars() {
return CharArrayUtil.fromSequence(getImmutableCharSequence());
}
@@ -28,7 +28,7 @@ public interface CodeInsightColors {
/**
* @deprecated use {@link #WEAK_WARNING_ATTRIBUTES} instead
*/
@Deprecated @ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@Deprecated @ApiStatus.ScheduledForRemoval
TextAttributesKey INFO_ATTRIBUTES = TextAttributesKey.createTextAttributesKey("INFO_ATTRIBUTES");
TextAttributesKey WEAK_WARNING_ATTRIBUTES = TextAttributesKey.createTextAttributesKey("INFO_ATTRIBUTES");
TextAttributesKey INFORMATION_ATTRIBUTES = TextAttributesKey.createTextAttributesKey("INFORMATION_ATTRIBUTES");
@@ -42,7 +42,7 @@ public interface CodeInsightColors {
* For Java-related code use {@link com.intellij.ide.highlighter.JavaHighlightingColors#INSTANCE_FIELD_ATTRIBUTES}.
* The field will be removed in future versions.
*/
@Deprecated @ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@Deprecated @ApiStatus.ScheduledForRemoval
TextAttributesKey INSTANCE_FIELD_ATTRIBUTES = TextAttributesKey.DUMMY_DEPRECATED_ATTRIBUTES;
/**
* @deprecated as of version 16.
@@ -50,7 +50,7 @@ public interface CodeInsightColors {
* For Java-related code use {@link com.intellij.ide.highlighter.JavaHighlightingColors#STATIC_FINAL_FIELD_ATTRIBUTES}.
* The field will be removed in future versions.
*/
@Deprecated @ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@Deprecated @ApiStatus.ScheduledForRemoval
TextAttributesKey STATIC_FINAL_FIELD_ATTRIBUTES = TextAttributesKey.DUMMY_DEPRECATED_ATTRIBUTES;
/**
* @deprecated as of version 16.
@@ -59,7 +59,7 @@ public interface CodeInsightColors {
* The field will be removed in future versions.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
TextAttributesKey METHOD_CALL_ATTRIBUTES = TextAttributesKey.DUMMY_DEPRECATED_ATTRIBUTES;
/**
* @deprecated as of version 16.
@@ -68,7 +68,7 @@ public interface CodeInsightColors {
* The field will be removed in future versions.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
TextAttributesKey ANNOTATION_NAME_ATTRIBUTES = TextAttributesKey.DUMMY_DEPRECATED_ATTRIBUTES;
TextAttributesKey MATCHED_BRACE_ATTRIBUTES = TextAttributesKey.createTextAttributesKey("MATCHED_BRACE_ATTRIBUTES");
@@ -262,7 +262,7 @@ public final class TextAttributesKey implements Comparable<TextAttributesKey> {
* @deprecated Use {@link #createTextAttributesKey(String, TextAttributesKey)} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public void setFallbackAttributeKey(@Nullable TextAttributesKey fallbackAttributeKey) {
}
@@ -144,7 +144,7 @@ public abstract class FileTypeRegistry {
/** @deprecated not used anymore, do not override */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
default int getVersion() { return 0; }
}
}
@@ -38,7 +38,7 @@ public interface OSFileIdeAssociation {
/** @deprecated please implement {@link #getExtensionMode()} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@SuppressWarnings("IdentifierGrammar")
default ExtensionMode getExtensionsMode() {
return getExtensionMode();
@@ -133,12 +133,12 @@ public interface ProgressIndicator {
/** @deprecated use {@link ProgressManager#executeNonCancelableSection(Runnable)} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
default void startNonCancelableSection() {}
/** @deprecated use {@link ProgressManager#executeNonCancelableSection(Runnable)} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
default void finishNonCancelableSection() {}
/**
@@ -168,7 +168,7 @@ public abstract class ProgressManager extends ProgressIndicatorProvider {
* @deprecated use {@link #run(Task)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public abstract void runProcessWithProgressAsynchronously(@NotNull Project project,
@NotNull @ProgressTitle String progressTitle,
@NotNull Runnable process,
@@ -21,7 +21,7 @@ import org.jetbrains.annotations.ApiStatus;
* @deprecated obsolete API
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public enum DumbModePermission {
MAY_START_MODAL,
MAY_START_BACKGROUND
@@ -30,7 +30,7 @@ public abstract class DumbModeTask implements Disposable {
*
* @deprecated Consider using {@link DumbModeTask()} and overwriting {@link DumbModeTask#tryMergeWith(DumbModeTask)} instead.
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
@Deprecated
public DumbModeTask(@NotNull Object equivalenceObject) {
myEquivalenceObject = Pair.create(getClass(), equivalenceObject);
@@ -447,7 +447,7 @@ public abstract class DumbService {
* @deprecated Obsolete, does nothing, just executes the passed runnable.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static void allowStartingDumbModeInside(@NotNull DumbModePermission permission, @NotNull Runnable runnable) {
runnable.run();
}
@@ -16,7 +16,7 @@ public final class ProjectCoreUtil {
* @deprecated for internal use only, use {@link com.intellij.psi.PsiElement#getProject()} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@ApiStatus.Internal
public static volatile Project theProject;
@@ -38,7 +38,7 @@ public final class ProjectCoreUtil {
* @deprecated Please use {@link com.intellij.psi.PsiElement#getProject()} or {@link com.intellij.openapi.project.ProjectManager#getOpenProjects()} instead.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@ApiStatus.Internal
@Nullable
public static Project theOnlyOpenProject() {
@@ -8,11 +8,11 @@ import org.jetbrains.annotations.Nullable;
public interface LocalFileProvider {
/** @deprecated use {@link com.intellij.openapi.vfs.newvfs.ArchiveFileSystem#getLocalByEntry(VirtualFile)} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
VirtualFile getLocalVirtualFileFor(@Nullable VirtualFile entryVFile);
/** @deprecated use {@code ArchiveFileSystem.findFileByPath(path)} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
VirtualFile findLocalVirtualFileByPath(@NotNull String path);
}
@@ -17,7 +17,7 @@ public abstract class WritingAccessProvider {
* @deprecated Use {@link #EP}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static final ExtensionPointName<WritingAccessProvider> EP_NAME = ExtensionPointName.create("com.intellij.writingAccessProvider");
public static final ProjectExtensionPointName<WritingAccessProvider> EP = new ProjectExtensionPointName<>("com.intellij.writingAccessProvider");
@@ -281,7 +281,7 @@ public abstract class ArchiveHandler {
/** @deprecated please use {@link #processEntry} instead to correctly handle invalid entry names */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
protected @NotNull Pair<String, String> splitPath(@NotNull String entryName) {
return split(entryName);
}
@@ -29,7 +29,7 @@ import java.util.List;
public interface BulkFileListener {
/** @deprecated obsolete, implement {@link BulkFileListener} directly */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
class Adapter implements BulkFileListener { }
default void before(@NotNull List<? extends @NotNull VFileEvent> events) { }
@@ -221,7 +221,7 @@ public abstract class PsiDocumentManager {
* @deprecated Use message bus {@link PsiDocumentListener#TOPIC}.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public abstract void addListener(@NotNull Listener listener);
/**
@@ -61,7 +61,7 @@ public abstract class SmartPointerManager {
* @deprecated use {@link #createSmartPsiElementPointer(PsiElement)} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
public <E extends PsiElement> SmartPsiElementPointer<E> createLazyPointer(@NotNull E element) {
return createSmartPsiElementPointer(element);
@@ -18,7 +18,7 @@ public abstract class IndentHelper {
* @deprecated Use {@link #getIndent(PsiFile, ASTNode)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public final int getIndent(Project project, FileType fileType, ASTNode element) {
return getIndent(getFile(element), element);
}
@@ -42,7 +42,7 @@ public class IReparseableElementType extends ILazyParseableElementType implement
* @return true if the content is valid, false if not
* @deprecated use {@link #isReparseable(ASTNode, CharSequence, Language, Project)} instead
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public boolean isParsable(@NotNull CharSequence buffer,
@NotNull Language fileLanguage,
@@ -34,7 +34,7 @@ public interface IReparseableElementTypeBase extends ILazyParseableElementTypeBa
* @return true if the content is valid, false if not
* @deprecated use {@link #isReparseable(ASTNode, CharSequence, Language, Project)} instead
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
default boolean isParsable(@Nullable ASTNode parent,
@NotNull CharSequence buffer,
@@ -57,7 +57,7 @@ public interface PsiModificationTracker extends ModificationTracker {
* @deprecated rarely supported by language plugins; also a wrong way for optimisations
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2020.3")
@ApiStatus.ScheduledForRemoval
Key OUT_OF_CODE_BLOCK_MODIFICATION_COUNT = MODIFICATION_COUNT;
/**
@@ -66,7 +66,7 @@ public interface PsiModificationTracker extends ModificationTracker {
* @deprecated rarely supported by JVM language plugins; also a wrong way for optimisations
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2020.3")
@ApiStatus.ScheduledForRemoval
Key JAVA_STRUCTURE_MODIFICATION_COUNT = MODIFICATION_COUNT;
/**
@@ -88,7 +88,7 @@ public interface PsiModificationTracker extends ModificationTracker {
* @deprecated rarely supported by JVM language plugins; also a wrong way for optimisations
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2020.3")
@ApiStatus.ScheduledForRemoval
@NotNull
ModificationTracker getJavaStructureModificationTracker();
@@ -64,7 +64,7 @@ public final class ModalityUiUtil {
* @deprecated Use ModalityUiUtil.invokeLaterIfNeeded(ModalityState, Runnable) instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
public static void invokeLaterIfNeeded(@NotNull Runnable runnable,
@NotNull ModalityState modalityState) {
invokeLaterIfNeeded(modalityState,runnable);
@@ -74,7 +74,7 @@ public final class ModalityUiUtil {
* @deprecated Use ModalityUiUtil.invokeLaterIfNeeded(ModalityState, Condition<?>, Runnable) instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
public static void invokeLaterIfNeeded(@NotNull Runnable runnable, @NotNull ModalityState modalityState,
@NotNull Condition<?> expired) {
invokeLaterIfNeeded(modalityState, expired, runnable);
@@ -103,6 +103,6 @@ public interface PlatformIcons {
* @deprecated use {@link #FOLDER_ICON}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
Icon DIRECTORY_OPEN_ICON = FOLDER_ICON;
}
@@ -105,7 +105,7 @@ public interface Promise<T> {
* @deprecated Use {@link #onError(java.util.function.Consumer)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
default Promise<T> rejected(@NotNull Consumer<? super Throwable> rejected) {
return onError(it -> rejected.consume(it));
@@ -131,7 +131,7 @@ public interface Promise<T> {
* @deprecated use {@link #onProcessed(java.util.function.Consumer)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
default Promise<T> processed(@NotNull Consumer<? super T> action) {
return onProcessed(it -> action.consume(it));
@@ -64,7 +64,7 @@ public abstract class JobLauncher {
* @deprecated use {@link #invokeConcurrentlyUnderProgress(List, ProgressIndicator, Processor)} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public <T> boolean invokeConcurrentlyUnderProgress(@NotNull List<? extends T> things,
ProgressIndicator progress,
boolean failFastOnAcquireReadAction,
@@ -8,6 +8,6 @@ import org.jetbrains.annotations.ApiStatus;
* @deprecated Please use DefaultASTFactoryImpl directly
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2020.3")
@ApiStatus.ScheduledForRemoval
public class CoreASTFactory extends DefaultASTFactoryImpl {
}
@@ -50,7 +50,7 @@ public final class PluginManager {
* @deprecated In a plugin code simply throw error or log using {@link Logger#error(Throwable)}.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static void processException(@NotNull Throwable t) {
try {
Class<?> aClass = PluginManager.class.getClassLoader().loadClass("com.intellij.ide.plugins.StartupAbortedException");
@@ -88,7 +88,7 @@ public final class PluginManager {
* @deprecated Use {@link #getPluginByClass}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
public static @Nullable PluginId getPluginByClassName(@NotNull String className) {
return getPluginByClassNameAsNoAccessToClass(className);
}
@@ -112,7 +112,7 @@ public final class PluginManager {
* {@link DisabledPluginsState#disabledPlugins()} to get an unmodifiable collection of all disabled plugins (rarely needed).
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2020.2")
@ApiStatus.ScheduledForRemoval
public static @NotNull List<String> getDisabledPlugins() {
Set<PluginId> list = DisabledPluginsState.disabledPlugins();
return new AbstractList<String>() {
@@ -291,7 +291,7 @@ public final class PluginManagerCore {
* @deprecated Use {@link PluginManager#getPluginByClass}.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
public static @Nullable PluginId getPluginByClassName(@NotNull String className) {
PluginDescriptor result = getPluginDescriptorOrPlatformByClassName(className);
PluginId id = result == null ? null : result.getPluginId();
@@ -302,7 +302,7 @@ public final class PluginManagerCore {
* @deprecated Use {@link PluginManager#getPluginByClass}.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
public static @Nullable PluginId getPluginOrPlatformByClassName(@NotNull String className) {
PluginDescriptor result = getPluginDescriptorOrPlatformByClassName(className);
return result == null ? null : result.getPluginId();
@@ -1173,7 +1173,7 @@ public final class PluginManagerCore {
/** @deprecated Use {@link #enablePlugin(PluginId)} */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static boolean enablePlugin(@NotNull String id) {
return enablePlugin(PluginId.getId(id));
}
@@ -1181,7 +1181,7 @@ public final class PluginManagerCore {
/** @deprecated Use {@link DisabledPluginsState#addDisablePluginListener} directly
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.2")
@ApiStatus.ScheduledForRemoval
public static void addDisablePluginListener(@NotNull Runnable listener) {
DisabledPluginsState.addDisablePluginListener(listener);
}
@@ -29,13 +29,13 @@ import java.util.Set;
* @deprecated Use {@link FoldingDescriptor} instead.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public final class NamedFoldingDescriptor extends FoldingDescriptor {
/**
* @deprecated Use {@link FoldingDescriptor#FoldingDescriptor(PsiElement, int, int, FoldingGroup, String)} instead.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public NamedFoldingDescriptor(@NotNull PsiElement e, int start, int end, @Nullable FoldingGroup group, @NotNull String placeholderText) {
super(e, start, end, group, placeholderText);
}
@@ -44,7 +44,7 @@ public final class NamedFoldingDescriptor extends FoldingDescriptor {
* @deprecated Use {@link FoldingDescriptor#FoldingDescriptor(ASTNode, TextRange, FoldingGroup, String)} instead.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public NamedFoldingDescriptor(@NotNull ASTNode node,
@NotNull final TextRange range,
@Nullable FoldingGroup group,
@@ -56,7 +56,7 @@ public final class NamedFoldingDescriptor extends FoldingDescriptor {
* @deprecated Use {@link FoldingDescriptor#FoldingDescriptor(ASTNode, TextRange, FoldingGroup, String, Boolean, Set)} instead.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public NamedFoldingDescriptor(@NotNull ASTNode node,
@NotNull final TextRange range,
@Nullable FoldingGroup group,
@@ -26,7 +26,7 @@ public abstract class ApplicationInfoEx extends ApplicationInfo {
* @deprecated use {@link #getSmallApplicationSvgIconUrl()} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
public abstract @NotNull String getSmallIconUrl();
/**
@@ -29,7 +29,7 @@ import org.jetbrains.annotations.NotNull;
* @deprecated Use {@link DocumentListener} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public interface DocumentBulkUpdateListener {
Topic<DocumentBulkUpdateListener> TOPIC = Topic.create("Bulk document change notification like reformat, etc.", DocumentBulkUpdateListener.class);
@@ -40,7 +40,7 @@ public interface DocumentBulkUpdateListener {
* @deprecated Use {@link DocumentListener} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
abstract class Adapter implements DocumentBulkUpdateListener {
@Override
public void updateFinished(@NotNull final Document doc) {}
@@ -204,7 +204,7 @@ public class AbstractProgressIndicatorExBase extends AbstractProgressIndicatorBa
* @deprecated do not use. Instead, create new indicator and call {@link #addStateDelegate(ProgressIndicatorEx)} with it.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
protected void delegateRunningChange(@NotNull IndicatorAction action) {
}
@@ -45,7 +45,7 @@ public class ChangeInfoImpl implements ChangeInfo {
* @deprecated for API compatibility with Kotlin plugin
*/
@Nullable
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@Deprecated
public TreeElement getOldChild() {
return (TreeElement)myOldChild;
@@ -27,7 +27,7 @@ public class OrFilter implements ElementFilter {
/** @deprecated use {@link #OrFilter(ElementFilter...)} */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public OrFilter() {
myFilters = new SmartList<>();
}
@@ -38,7 +38,7 @@ public class OrFilter implements ElementFilter {
/** @deprecated use {@link #OrFilter(ElementFilter...)} */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public void addFilter(ElementFilter filter) {
myFilters.add(filter);
}
@@ -25,7 +25,7 @@ import org.jetbrains.annotations.NotNull;
* @deprecated see {@link com.intellij.psi.util.PsiModificationTracker#OUT_OF_CODE_BLOCK_MODIFICATION_COUNT}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2020.3")
@ApiStatus.ScheduledForRemoval
public abstract class AbstractModificationTracker implements PsiTreeChangePreprocessor {
private final PsiManagerImpl myPsiManager;
private PsiModificationTrackerImpl myModificationTracker;
@@ -624,14 +624,14 @@ public final class DebugUtil {
//<editor-fold desc="Deprecated stuff">
/** @deprecated use {@link #performPsiModification} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
public static void startPsiModification(@Nullable String trace) {
beginPsiModification(trace);
}
/** @deprecated use {@link #performPsiModification} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
public static void finishPsiModification() {
endPsiModification();
}
@@ -58,7 +58,7 @@ public final class PsiModificationTrackerImpl implements PsiModificationTracker,
* @see PsiManager#dropPsiCaches()
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
public void incCounter() {
ApplicationManager.getApplication().assertWriteAccessAllowed();
incCountersInner();
@@ -70,7 +70,7 @@ public final class PsiModificationTrackerImpl implements PsiModificationTracker,
* @see PsiManager#dropPsiCaches()
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
public void incOutOfCodeBlockModificationCounter() {
ApplicationManager.getApplication().assertWriteAccessAllowed();
incCountersInner();
@@ -30,7 +30,7 @@ public interface ExtensionPoint<@NotNull T> {
* @deprecated Use {@link com.intellij.testFramework.PlatformTestUtil#maskExtensions} or {@link #registerExtension(Object, LoadingOrder, Disposable)}.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
void registerExtension(@NotNull T extension, @NotNull LoadingOrder order);
@TestOnly
@@ -63,7 +63,7 @@ public interface ExtensionPoint<@NotNull T> {
* @deprecated Use another solution, because this method instantiates all extensions.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
default @Nullable T getExtension() {
// method is deprecated and not used, ignore not efficient implementation
return ContainerUtil.getFirstItem(getExtensionList());
@@ -73,7 +73,7 @@ public interface ExtensionPoint<@NotNull T> {
* @deprecated Use another solution, because this method instantiates all extensions.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
default boolean hasExtension(@NotNull T extension) {
// method is deprecated and used only by one external plugin, ignore not efficient implementation
return ContainerUtil.containsIdentity(getExtensionList(), extension);
@@ -89,7 +89,7 @@ public interface ExtensionPoint<@NotNull T> {
* @deprecated Use another solution to unregister not applicable extension, because this method instantiates all extensions.
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
void unregisterExtensions(@NotNull Predicate<? super T> extension);
/**
@@ -114,7 +114,7 @@ public interface ExtensionPoint<@NotNull T> {
* @deprecated Use {@link ExtensionPointName#addChangeListener(Runnable, Disposable)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
void addExtensionPointListener(@NotNull ExtensionPointChangeListener listener, boolean invokeForLoadedExtensions, @Nullable Disposable parentDisposable);
/**
@@ -80,7 +80,7 @@ public interface PluginDescriptor {
* @deprecated doesn't make sense for installed plugins; use PluginNode#getDownloads
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
default @Nullable String getDownloads() {
return null;
}
@@ -572,7 +572,7 @@ public class UrlClassLoader extends ClassLoader implements ClassPath.ClassDataCo
/**
* @deprecated Use {@link #files(List)}. Using of {@link URL} is discouraged in favor of modern {@link Path}.
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
@Deprecated
public @NotNull UrlClassLoader.Builder urls(@NotNull List<URL> urls) {
List<Path> files = new ArrayList<>(urls.size());
@@ -33,7 +33,7 @@ public final class Comparing {
}
/** @deprecated same as {@link Arrays#equals(Object[], Object[])} */
@Deprecated @ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@Deprecated @ApiStatus.ScheduledForRemoval
public static <T> boolean equal(@Nullable T[] arr1, @Nullable T[] arr2) {
return Arrays.equals(arr1, arr2);
}
@@ -49,7 +49,7 @@ public interface Condition<T> {
* @deprecated use {@link Conditions#alwaysTrue()} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
Condition<Object> TRUE = new Condition<Object>() {
public boolean value(final Object object) {
return true;
@@ -64,7 +64,7 @@ public interface Condition<T> {
* @deprecated use {@link Conditions#alwaysFalse()} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
Condition<Object> FALSE = new Condition<Object>() {
public boolean value(final Object object) {
return false;
@@ -28,6 +28,6 @@ public final class SystemInfoRt {
private static final String ARCH_DATA_MODEL = System.getProperty("sun.arch.data.model");
/** @deprecated inexact, please use {@code com.intellij.util.system.CpuArch} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static final boolean is64Bit = !(ARCH_DATA_MODEL == null || ARCH_DATA_MODEL.equals("32"));
}
@@ -11,7 +11,7 @@ public interface Consumer<T> {
* @deprecated use {@link com.intellij.util.EmptyConsumer#getInstance()} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
Consumer<Object> EMPTY_CONSUMER = new Consumer<Object>() {
public void consume(Object t) { }
};
@@ -25,7 +25,7 @@ public class IncorrectOperationException extends RuntimeException {
/** @deprecated use {@link #IncorrectOperationException(String, Throwable)} */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.1")
@ApiStatus.ScheduledForRemoval
public IncorrectOperationException(String message, Exception e) {
super(message, e);
}
@@ -17,7 +17,7 @@ import java.util.*;
* Intended to use by external (out-of-IDE-process) runners and helpers so it should not contain any library dependencies.
* @deprecated Use collection methods instead
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
@Deprecated
public final class ContainerUtilRt {
/**
@@ -26,7 +26,7 @@ public final class ContainerUtilRt {
@NotNull
@Contract(value = " -> new", pure = true)
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static <K, V> HashMap<K, V> newHashMap() {
return new HashMap<K, V>();
}
@@ -45,7 +45,7 @@ public final class ContainerUtilRt {
* @deprecated Use {@link com.intellij.util.containers.ContainerUtil#newArrayList(Object[])} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
@Contract(value = "_ -> new", pure = true)
public static <T> ArrayList<T> newArrayList(@NotNull T... elements) {
@@ -60,7 +60,7 @@ public final class ContainerUtilRt {
@NotNull
@Contract(value = " -> new", pure = true)
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static <T> HashSet<T> newHashSet() {
return new HashSet<T>();
}
@@ -69,7 +69,7 @@ public final class ContainerUtilRt {
* @deprecated Use {@link com.intellij.util.containers.ContainerUtil#newHashSet(Object[])}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
@Contract(value = "_ -> new", pure = true)
public static <T> HashSet<T> newHashSet(@NotNull T... elements) {
@@ -94,7 +94,7 @@ public final class ContainerUtilRt {
* @deprecated Use {@link com.intellij.util.containers.ContainerUtil#newLinkedHashSet(Object[])}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
@Contract(value = "_ -> new", pure = true)
public static <T> LinkedHashSet<T> newLinkedHashSet(@NotNull T... elements) {
@@ -179,7 +179,7 @@ public final class ContainerUtilRt {
* @deprecated Use {@link com.intellij.util.containers.ContainerUtil#emptyList()}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
@Contract(pure=true)
public static <T> List<T> emptyList() {
@@ -194,7 +194,7 @@ public final class ContainerUtilRt {
@Deprecated
@NotNull
@Contract(pure=true)
@ApiStatus.ScheduledForRemoval(inVersion = "2021.2")
@ApiStatus.ScheduledForRemoval
public static <T, V> List<V> map2List(@NotNull Collection<? extends T> collection, @NotNull Function<? super T, ? extends V> mapper) {
if (collection.isEmpty()) return emptyList();
List<V> list = new ArrayList<V>(collection.size());
@@ -25,7 +25,7 @@ import java.util.NoSuchElementException;
* @deprecated Use {@link Collections#emptyIterator()} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public class EmptyIterator<T> implements Iterator<T> {
private static final EmptyIterator INSTANCE = new EmptyIterator();
public static <T> EmptyIterator<T> getInstance() {
@@ -530,7 +530,7 @@ public final class ArrayUtil {
/**
* @deprecated Use {@link Arrays#equals(Object[], Object[], Comparator)}
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public static <T> boolean equals(T @NotNull [] a1, T @NotNull [] a2, @NotNull Comparator<? super T> comparator) {
//noinspection ArrayEquality
@@ -79,14 +79,14 @@ public final class SystemProperties {
//<editor-fold desc="Deprecated stuff.">
/** @deprecated please use {@link Boolean#getBoolean(String)} or {@link #getBooleanProperty(String, boolean)} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
public static boolean is(String key) {
return getBooleanProperty(key, false);
}
/** @deprecated please use {@link System#lineSeparator()} instead */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
public static String getLineSeparator() {
return System.lineSeparator();
}
@@ -20,7 +20,7 @@ import java.util.function.Supplier;
* @deprecated Use {@link ContainerUtil#createConcurrentWeakKeySoftValueMap()} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public class ConcurrentWeakKeySoftValueHashMap<K, V> implements ConcurrentMap<K, V> {
private final ConcurrentMap<KeyReference<K,V>, ValueReference<K,V>> myMap;
final ReferenceQueue<K> myKeyQueue = new ReferenceQueue<>();
@@ -68,7 +68,7 @@ public final class ByteArrayCharSequence implements CharSequenceWithStringHash {
* @deprecated use {@param name} instead because of JEP 254
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
public static CharSequence convertToBytesIfAsciiString(@NotNull String name) {
return name;
@@ -78,7 +78,7 @@ public final class ByteArrayCharSequence implements CharSequenceWithStringHash {
* @deprecated use {@param string} instead because of JEP 254
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static @NotNull CharSequence convertToBytesIfPossible(@NotNull CharSequence string) {
if (JAVA_9) return string; // see JEP 254: Compact Strings
if (string.length() == 0) return "";
@@ -40,7 +40,7 @@ public class BaseOSProcessHandler extends BaseProcessHandler<Process> {
* @deprecated override {@link #executeTask(Runnable)} instead of this method
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
@NotNull
protected Future<?> executeOnPooledThread(@NotNull final Runnable task) {
return ProcessIOExecutorService.INSTANCE.submit(task);
@@ -222,7 +222,7 @@ public class AllIcons {
/** @deprecated to be removed in IDEA 2021.1 (use expandable text field instead, see https://jetbrains.design/intellij/controls/built_in_button/) */
@SuppressWarnings("unused")
@Deprecated
@ScheduledForRemoval(inVersion = "2021.1")
@ScheduledForRemoval
public static final @NotNull Icon ShowViewer = load("actions/showViewer.png", 0, 0);
}
@@ -1190,7 +1190,7 @@ public class AllIcons {
/** @deprecated to be removed in IDEA 2021.1 */
@SuppressWarnings("unused")
@Deprecated
@ScheduledForRemoval(inVersion = "2021.1")
@ScheduledForRemoval
public static final @NotNull Icon CreateNewProject = load("welcome/createNewProject.svg", 0, 0);
}
@@ -11,7 +11,7 @@ public abstract class AtomicNotNullLazyValue<T> extends NotNullLazyValue<T> {
private volatile T myValue;
/** @deprecated Use {@link NotNullLazyValue#atomicLazy(Supplier)} */
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
protected AtomicNotNullLazyValue() { }
@@ -37,7 +37,7 @@ public final class ClassLoaderUtil {
/** @deprecated Use {@link ClassLoaderUtil#computeWithClassLoader(ClassLoader, ThrowableComputable)} instead. */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static <T> T runWithClassLoader(ClassLoader classLoader, Computable<T> computable) {
return computeWithClassLoader(classLoader, () -> computable.compute());
}
@@ -17,7 +17,7 @@ public final class Conditions {
* @deprecated use {@link #alwaysTrue()} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static final Condition<Object> TRUE = alwaysTrue();
@NotNull
@@ -130,7 +130,7 @@ public final class Disposer {
/**
* @deprecated Use {@link #register(Disposable, Disposable)} instead
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public static void register(@NotNull Disposable parent, @NotNull Disposable child, @NonNls @NotNull final String key) {
register(parent, child);
@@ -195,7 +195,7 @@ public final class Disposer {
/**
* @deprecated Store and use your own Disposable instead. Instead of {@code Disposer.get("ui")} use {@link com.intellij.openapi.application.ApplicationManager#getApplication()}
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public static Disposable get(@NotNull String key) {
String message = "this method is deprecated and going to be removed soon. Store and use your own Disposable instead";
@@ -13,7 +13,7 @@ public abstract class IconPathPatcher {
* @deprecated use {@link #patchPath(String, ClassLoader)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public @Nullable String patchPath(@NotNull String path) {
return patchPath(path, null);
}
@@ -33,7 +33,7 @@ public abstract class IconPathPatcher {
* @deprecated use {@link #getContextClassLoader(String, ClassLoader)}
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public Class<?> getContextClass(@NotNull String path) {
return null;
}
@@ -135,7 +135,7 @@ public final class JDOMExternalizerUtil {
//<editor-fold desc="Deprecated stuff.">
/** @deprecated use {@link #writeCustomField(Element, String, String)} */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static Element addElementWithValueAttribute(@NotNull Element parent, @NotNull String childTagName, @Nullable String attrValue) {
writeCustomField(parent, childTagName, attrValue);
return parent.getChild(childTagName);
@@ -143,7 +143,7 @@ public final class JDOMExternalizerUtil {
/** @deprecated use {@link #readCustomField(Element, String)} */
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static String getFirstChildValueAttribute(@NotNull Element parent, @NotNull String childTagName) {
return readCustomField(parent, childTagName);
}
@@ -108,7 +108,7 @@ public final class JDOMUtil {
* @deprecated Use {@link Element#getChildren} instead
*/
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public static Element @NotNull [] getElements(@NotNull Element m) {
List<Element> list = m.getChildren();
return list.toArray(new Element[0]);
@@ -9,7 +9,7 @@ import java.lang.reflect.Constructor;
/**
* @deprecated Use {@link com.intellij.openapi.components.ComponentManager#instantiateClass}
*/
@ApiStatus.ScheduledForRemoval(inVersion = "2022.1")
@ApiStatus.ScheduledForRemoval
@Deprecated
public abstract class LazyInstance<T> extends NotNullLazyValue<T> {
protected abstract Class<T> getInstanceClass() throws ClassNotFoundException;
@@ -19,7 +19,7 @@ import java.util.*;
*/
@Debug.Renderer(text = "\"size = \" + myDelegate.size()", hasChildren = "!isEmpty()", childrenArray = "entrySet().toArray()")
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2021.3")
@ApiStatus.ScheduledForRemoval
public class MultiValuesMap<K, V>{
private final MultiMap<K, V> myDelegate;
private final boolean myOrdered;
@@ -17,7 +17,7 @@ public abstract class NotNullLazyValue<T> implements Supplier<T> {
private T myValue;
/** @deprecated Use {@link NotNullLazyValue#lazy(Supplier)} */
@ApiStatus.ScheduledForRemoval(inVersion = "2022.2")
@ApiStatus.ScheduledForRemoval
@Deprecated
@SuppressWarnings("DeprecatedIsStillUsed")
protected NotNullLazyValue() { }

Some files were not shown because too many files have changed in this diff Show More