mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[java] API cleanup: remove unused deprecated API (IDEA-322162)
GitOrigin-RevId: 8b8a875126194efe99989d51127072dd8e503d6e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9385c980e0
commit
d67bdd5b72
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.intellij.openapi.compiler;
|
||||
|
||||
/**
|
||||
* @deprecated this interface is part of the obsolete build system which runs as part of the IDE process. Since IDEA 15 implementations of
|
||||
* this class aren't used by the IDE, you should integrate into 'external build system' instead
|
||||
* (http://www.jetbrains.org/intellij/sdk/docs/reference_guide/frameworks_and_external_apis/external_builder_api.html).
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public interface IntermediateOutputCompiler extends Compiler{
|
||||
}
|
||||
@@ -47,19 +47,6 @@ public final class EvaluationContextImpl implements EvaluationContext {
|
||||
this(suspendContext, frameProxy, () -> frameProxy != null ? frameProxy.thisObject() : null);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
@Deprecated
|
||||
public Value getThisObject() {
|
||||
try {
|
||||
return computeThisObject();
|
||||
}
|
||||
catch (EvaluateException e) {
|
||||
LOG.info(e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Value computeThisObject() throws EvaluateException {
|
||||
|
||||
@@ -6,9 +6,7 @@ import com.intellij.openapi.diagnostic.ControlFlowException;
|
||||
public class NoDataException extends Exception implements ControlFlowException {
|
||||
public static final NoDataException INSTANCE = new NoDataException();
|
||||
|
||||
/** @deprecated Use shared {@link NoDataException#INSTANCE} instead */
|
||||
@Deprecated(forRemoval = true)
|
||||
public NoDataException() { }
|
||||
private NoDataException() { }
|
||||
|
||||
@Override
|
||||
public synchronized Throwable fillInStackTrace() {
|
||||
|
||||
@@ -26,13 +26,6 @@ public interface EvaluationContext extends StackFrameContext {
|
||||
@Nullable
|
||||
ClassLoaderReference getClassLoader() throws EvaluateException;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #computeThisObject()} instead, EvaluationContext now may lazily compute this object
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Nullable
|
||||
Value getThisObject();
|
||||
|
||||
@Nullable
|
||||
Value computeThisObject() throws EvaluateException;
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ import com.intellij.execution.PsiLocation;
|
||||
import com.intellij.execution.RunnerAndConfigurationSettings;
|
||||
import com.intellij.execution.actions.ConfigurationContext;
|
||||
import com.intellij.execution.actions.ConfigurationFromContext;
|
||||
import com.intellij.execution.configurations.ConfigurationType;
|
||||
import com.intellij.execution.junit.InheritorChooser;
|
||||
import com.intellij.execution.junit2.PsiMemberParameterizedLocation;
|
||||
import com.intellij.execution.junit2.info.MethodLocation;
|
||||
@@ -40,14 +39,6 @@ import static com.siyeh.ig.junit.JUnitCommonClassNames.SOURCE_ANNOTATIONS;
|
||||
public abstract class AbstractInClassConfigurationProducer<T extends JavaTestConfigurationBase> extends AbstractJavaTestConfigurationProducer<T> {
|
||||
private static final Logger LOG = Logger.getInstance(AbstractInClassConfigurationProducer.class);
|
||||
|
||||
/**
|
||||
* @deprecated Override {@link #getConfigurationFactory()}.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
protected AbstractInClassConfigurationProducer(ConfigurationType configurationType) {
|
||||
super(configurationType);
|
||||
}
|
||||
|
||||
protected AbstractInClassConfigurationProducer() {
|
||||
}
|
||||
|
||||
|
||||
@@ -37,14 +37,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
import java.util.*;
|
||||
|
||||
public abstract class AbstractJavaTestConfigurationProducer<T extends JavaTestConfigurationBase> extends JavaRunConfigurationProducerBase<T> {
|
||||
/**
|
||||
* @deprecated Override {@link #getConfigurationFactory()}.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
protected AbstractJavaTestConfigurationProducer(ConfigurationType configurationType) {
|
||||
super(configurationType);
|
||||
}
|
||||
|
||||
protected AbstractJavaTestConfigurationProducer() {
|
||||
}
|
||||
|
||||
|
||||
@@ -34,18 +34,6 @@ public abstract class DownloadableLibraryType extends LibraryType<LibraryVersion
|
||||
private final Supplier<@Nls(capitalization = Nls.Capitalization.Title) String> myLibraryCategoryName;
|
||||
private final DownloadableLibraryDescription myLibraryDescription;
|
||||
|
||||
/**
|
||||
* @deprecated The constructor is meant to maintain the binary compatibility with external plugins.
|
||||
* Please use the constructors with a messagePointer for {@link DownloadableLibraryType#myLibraryCategoryName}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
protected DownloadableLibraryType(@NotNull @Nls(capitalization = Nls.Capitalization.Title) String libraryCategoryName,
|
||||
@NotNull String libraryTypeId,
|
||||
@NotNull String groupId,
|
||||
URL @NotNull ... localUrls) {
|
||||
this(() -> libraryCategoryName, libraryTypeId, groupId, localUrls);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates instance of library type. You also <strong>must</strong> override {@link #getLibraryTypeIcon()} method and return non-null value
|
||||
* from it.
|
||||
|
||||
@@ -15,7 +15,6 @@ import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.module.ModuleManager;
|
||||
import com.intellij.openapi.options.ConfigurationException;
|
||||
import com.intellij.openapi.project.DumbAware;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable;
|
||||
import com.intellij.openapi.roots.ui.configuration.projectRoot.daemon.FacetProjectStructureElement;
|
||||
import com.intellij.openapi.roots.ui.configuration.projectRoot.daemon.ProjectStructureElement;
|
||||
@@ -48,14 +47,6 @@ public class FacetStructureConfigurable extends BaseStructureConfigurable {
|
||||
return "FacetStructureConfigurable.UI";
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link ProjectStructureConfigurable#getFacetStructureConfigurable()} instead
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public static FacetStructureConfigurable getInstance(final @NotNull Project project) {
|
||||
return ProjectStructureConfigurable.getInstance(project).getFacetStructureConfigurable();
|
||||
}
|
||||
|
||||
public boolean isVisible() {
|
||||
return FacetTypeRegistry.getInstance().getFacetTypes().length > 0 || !InvalidFacetManager.getInstance(myProject).getInvalidFacets().isEmpty();
|
||||
}
|
||||
|
||||
@@ -11,8 +11,6 @@ import junit.framework.TestCase
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
|
||||
class CloneOrderEntriesTest : JavaModuleTestCase() {
|
||||
override fun isRunInWriteAction(): Boolean = true
|
||||
|
||||
fun `test copied jdk and module source`() {
|
||||
WriteAction.run<RuntimeException> {
|
||||
val copyToModifiableModel = ModuleRootManager.getInstance(createModule("Copy To Module")).modifiableModel
|
||||
|
||||
@@ -203,16 +203,6 @@ public abstract class IntroduceVariableBase extends IntroduceHandlerBase {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use CommonJavaRefactoringUtil.collectExpressions
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public static List<PsiExpression> collectExpressions(final PsiFile file,
|
||||
final Editor editor,
|
||||
final int offset) {
|
||||
return CommonJavaRefactoringUtil.collectExpressions(file, editor, offset);
|
||||
}
|
||||
|
||||
private boolean invoke(final Project project, final Editor editor, PsiFile file, int startOffset, int endOffset) {
|
||||
FeatureUsageTracker.getInstance().triggerFeatureUsed(ProductivityFeatureNames.REFACTORING_INTRODUCE_VARIABLE);
|
||||
PsiDocumentManager.getInstance(project).commitAllDocuments();
|
||||
|
||||
@@ -12,7 +12,6 @@ import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.psi.PsiFile;
|
||||
import com.intellij.psi.PsiJavaCodeReferenceElement;
|
||||
import com.intellij.util.concurrency.ThreadingAssertions;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
@@ -20,15 +19,6 @@ import java.util.function.BooleanSupplier;
|
||||
|
||||
|
||||
public class JavaReferenceImporter implements ReferenceImporter {
|
||||
/**
|
||||
* @deprecated use {@link JavaReferenceImporter#computeAutoImportAtOffset(Editor, PsiFile, int, boolean)}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public static boolean autoImportReferenceAtCursor(@NotNull Editor editor, @NotNull PsiFile file, boolean allowCaretNearRef) {
|
||||
ThreadingAssertions.assertEventDispatchThread();
|
||||
return new JavaReferenceImporter().autoImportReferenceAtCursor(editor, file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BooleanSupplier computeAutoImportAtOffset(@NotNull Editor editor, @NotNull PsiFile file, int offset, boolean allowCaretNearReference) {
|
||||
ApplicationManager.getApplication().assertIsNonDispatchThread();
|
||||
|
||||
@@ -71,15 +71,6 @@ public final class MethodReferencesSearch extends ExtensibleQueryFactory<PsiRefe
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @deprecated Same as {@link #getScopeDeterminedByUser()}. Searchers most likely need to use {@link #getEffectiveSearchScope()}.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@NotNull
|
||||
public SearchScope getScope() {
|
||||
return getScopeDeterminedByUser();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public SearchScope getEffectiveSearchScope () {
|
||||
SearchScope scope = myEffectiveScope;
|
||||
|
||||
@@ -27,7 +27,6 @@ import com.intellij.util.ArrayUtilRt;
|
||||
import com.intellij.util.CharTable;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import com.intellij.util.SmartList;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -384,15 +383,6 @@ public class PsiDocMethodOrFieldRef extends CompositePsiElement implements PsiDo
|
||||
return PsiDocMethodOrFieldRef.this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #bindToText(StringBuffer)} instead
|
||||
*/
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated
|
||||
public PsiElement bindToText(@SuppressWarnings("unused") PsiClass containingClass, StringBuffer newText) {
|
||||
return bindToText(newText);
|
||||
}
|
||||
|
||||
public PsiElement bindToText(StringBuffer newText) {
|
||||
PsiElementFactory elementFactory = JavaPsiFacade.getElementFactory(getProject());
|
||||
PsiComment comment = elementFactory.createCommentFromText(newText.toString(), null);
|
||||
|
||||
Reference in New Issue
Block a user