mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] API cleanup: remove unused API which was deprecated for a long time (IDEA-259329)
GitOrigin-RevId: b2f2c85514d360e8d716e6f136f7c11760086f0e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
93fd12175f
commit
645a720b58
@@ -6,7 +6,6 @@ import com.intellij.compiler.impl.javaCompiler.BackendCompiler;
|
||||
import com.intellij.compiler.server.BuildManager;
|
||||
import com.intellij.execution.process.ProcessIOExecutorService;
|
||||
import com.intellij.ide.IdeEventQueue;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.compiler.Compiler;
|
||||
import com.intellij.openapi.compiler.*;
|
||||
@@ -348,12 +347,6 @@ public class CompilerManagerImpl extends CompilerManager {
|
||||
connection.subscribe(CompilerTopics.COMPILATION_STATUS, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addCompilationStatusListener(@NotNull CompilationStatusListener listener, @NotNull Disposable parentDisposable) {
|
||||
final MessageBusConnection connection = myProject.getMessageBus().connect(parentDisposable);
|
||||
connection.subscribe(CompilerTopics.COMPILATION_STATUS, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeCompilationStatusListener(final @NotNull CompilationStatusListener listener) {
|
||||
final MessageBusConnection connection = myListenerAdapters.remove(listener);
|
||||
|
||||
@@ -33,17 +33,6 @@ import static org.jetbrains.jps.api.CmdlineRemoteProto.Message.ControllerMessage
|
||||
public abstract class BuildTargetScopeProvider {
|
||||
public static final ExtensionPointName<BuildTargetScopeProvider> EP_NAME = ExtensionPointName.create("com.intellij.compiler.buildTargetScopeProvider");
|
||||
|
||||
/**
|
||||
* @deprecated override {@link #getBuildTargetScopes(CompileScope, Project, boolean)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
@NotNull
|
||||
@Contract(pure = true)
|
||||
public List<TargetTypeBuildScope> getBuildTargetScopes(@NotNull CompileScope baseScope, @NotNull CompilerFilter filter,
|
||||
@NotNull Project project) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated override {@link #getBuildTargetScopes(CompileScope, Project, boolean)} instead
|
||||
*/
|
||||
@@ -53,7 +42,7 @@ public abstract class BuildTargetScopeProvider {
|
||||
@Contract(pure = true)
|
||||
public List<TargetTypeBuildScope> getBuildTargetScopes(@NotNull CompileScope baseScope, @NotNull CompilerFilter filter,
|
||||
@NotNull Project project, boolean forceBuild) {
|
||||
return getBuildTargetScopes(baseScope, filter, project);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.compiler.options;
|
||||
|
||||
import com.intellij.compiler.CompilerSettingsFactory;
|
||||
import com.intellij.openapi.compiler.JavaCompilerBundle;
|
||||
import com.intellij.openapi.extensions.BaseExtensionPointName;
|
||||
import com.intellij.openapi.options.Configurable;
|
||||
import com.intellij.openapi.options.ConfigurationException;
|
||||
import com.intellij.openapi.options.SearchableConfigurable;
|
||||
@@ -11,19 +9,12 @@ import com.intellij.openapi.project.Project;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Objects;
|
||||
|
||||
public class CompilerConfigurable implements SearchableConfigurable.Parent, Configurable.NoScroll, Configurable.WithEpDependencies {
|
||||
|
||||
private final Project myProject;
|
||||
public class CompilerConfigurable implements SearchableConfigurable.Parent, Configurable.NoScroll {
|
||||
private final CompilerUIConfigurable myCompilerUIConfigurable;
|
||||
private Configurable[] myKids;
|
||||
|
||||
public CompilerConfigurable(Project project) {
|
||||
myProject = project;
|
||||
myCompilerUIConfigurable = new CompilerUIConfigurable(myProject);
|
||||
myCompilerUIConfigurable = new CompilerUIConfigurable(project);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -72,17 +63,8 @@ public class CompilerConfigurable implements SearchableConfigurable.Parent, Conf
|
||||
myCompilerUIConfigurable.disposeUIResources();
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull Collection<BaseExtensionPointName<?>> getDependencies() {
|
||||
return Collections.singleton(CompilerSettingsFactory.EP_NAME);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Configurable @NotNull [] getConfigurables() {
|
||||
Configurable[] kids = myKids;
|
||||
if (kids == null) {
|
||||
myKids = kids = CompilerSettingsFactory.EP_NAME.extensions(myProject).map(f -> f.create(myProject)).filter(Objects::nonNull).toArray(Configurable[]::new);
|
||||
}
|
||||
return kids;
|
||||
return new Configurable[0];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.uiDesigner.ant;
|
||||
|
||||
/**
|
||||
* @noinspection ClassNameSameAsAncestorName
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
public class Javac2 extends com.intellij.ant.Javac2 {
|
||||
}
|
||||
@@ -1,30 +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.compiler;
|
||||
|
||||
import com.intellij.openapi.extensions.ProjectExtensionPointName;
|
||||
import com.intellij.openapi.options.Configurable;
|
||||
import com.intellij.openapi.project.Project;
|
||||
|
||||
/**
|
||||
* @deprecated Please use {@link com.intellij.openapi.options.ConfigurableEP#parentId} to put your configurable under Compiler Settings
|
||||
*/
|
||||
@Deprecated
|
||||
public interface CompilerSettingsFactory {
|
||||
ProjectExtensionPointName<CompilerSettingsFactory> EP_NAME = new ProjectExtensionPointName<>("com.intellij.compilerSettingsFactory");
|
||||
|
||||
Configurable create(Project project);
|
||||
}
|
||||
@@ -25,7 +25,6 @@ public final class CompilerWorkspaceConfiguration implements PersistentStateComp
|
||||
|
||||
public boolean AUTO_SHOW_ERRORS_IN_EDITOR = true;
|
||||
public boolean DISPLAY_NOTIFICATION_POPUP = true;
|
||||
@Deprecated public boolean CLOSE_MESSAGE_VIEW_IF_SUCCESS = true;
|
||||
public boolean CLEAR_OUTPUT_DIRECTORY = true;
|
||||
public boolean MAKE_PROJECT_ON_SAVE = false; // until we fix problems with several open projects (IDEA-104064), daemon slowness (IDEA-104666)
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ package com.intellij.openapi.compiler;
|
||||
|
||||
import com.intellij.execution.configurations.RunConfiguration;
|
||||
import com.intellij.notification.NotificationGroup;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.fileTypes.FileType;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.module.ModuleType;
|
||||
@@ -131,14 +130,6 @@ public abstract class CompilerManager {
|
||||
@NotNull
|
||||
public abstract List<CompileTask> getBeforeTasks();
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #getAfterTaskList}
|
||||
*/
|
||||
@Deprecated
|
||||
public CompileTask @NotNull [] getAfterTasks() {
|
||||
return getAfterTaskList().toArray(new CompileTask[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the list of all tasks to be executed after compilation.
|
||||
*
|
||||
@@ -244,12 +235,6 @@ public abstract class CompilerManager {
|
||||
@Deprecated
|
||||
public abstract void addCompilationStatusListener(@NotNull CompilationStatusListener listener);
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link CompilerTopics#COMPILATION_STATUS} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract void addCompilationStatusListener(@NotNull CompilationStatusListener listener, @NotNull Disposable parentDisposable);
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link CompilerTopics#COMPILATION_STATUS} instead
|
||||
*/
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2016 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.task;
|
||||
|
||||
import com.intellij.packaging.artifacts.Artifact;
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated tobe removed, use {@link ProjectModelBuildTask}
|
||||
*
|
||||
* @author Vladislav.Soroka
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ArtifactBuildTask extends ProjectModelBuildTask<Artifact> {
|
||||
Artifact getArtifact();
|
||||
|
||||
@Override
|
||||
default Artifact getBuildableElement() {return getArtifact();}
|
||||
}
|
||||
@@ -20,8 +20,6 @@
|
||||
*/
|
||||
package com.intellij.debugger.actions;
|
||||
|
||||
import com.intellij.debugger.ui.impl.DebuggerTreePanel;
|
||||
import com.intellij.debugger.ui.impl.watch.DebuggerTree;
|
||||
import com.intellij.xdebugger.impl.actions.XDebuggerActions;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
|
||||
@@ -33,8 +31,6 @@ public interface DebuggerActions extends XDebuggerActions {
|
||||
@NonNls String INSPECT_PANEL_POPUP = "Debugger.InspectPanelPopup";
|
||||
@NonNls String THREADS_PANEL_POPUP = "Debugger.ThreadsPanelPopup";
|
||||
@NonNls String WATCH_PANEL_POPUP = "Debugger.WatchesPanelPopup";
|
||||
@Deprecated @NonNls String DEBUGGER_TREE = DebuggerTree.DATA_KEY.getName();
|
||||
@Deprecated @NonNls String DEBUGGER_TREE_PANEL = DebuggerTreePanel.DATA_KEY.getName();
|
||||
@NonNls String EDIT_FRAME_SOURCE = "Debugger.EditFrameSource";
|
||||
@NonNls String EDIT_NODE_SOURCE = "Debugger.EditNodeSource";
|
||||
@NonNls String REPRESENTATION_LIST = "Debugger.Representation";
|
||||
|
||||
@@ -874,14 +874,6 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
|
||||
mySteppingBreakpoint = breakpoint;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #setSteppingBreakpoint(SteppingBreakpoint)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void setRunToCursorBreakpoint(@Nullable RunToCursorBreakpoint breakpoint) {
|
||||
mySteppingBreakpoint = breakpoint;
|
||||
}
|
||||
|
||||
public void cancelRunToCursorBreakpoint() {
|
||||
DebuggerManagerThreadImpl.assertIsManagerThread();
|
||||
final SteppingBreakpoint runToCursorBreakpoint = mySteppingBreakpoint;
|
||||
|
||||
@@ -36,13 +36,5 @@ public interface ChildrenBuilder extends XCompositeNode {
|
||||
setChildren(children);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #tooManyChildren}
|
||||
*/
|
||||
@Deprecated
|
||||
default void setRemaining(int remaining) {
|
||||
tooManyChildren(remaining);
|
||||
}
|
||||
|
||||
void initChildrenArrayRenderer(ArrayRenderer renderer, int arrayLength);
|
||||
}
|
||||
|
||||
-8
@@ -25,14 +25,6 @@ public abstract class AbstractApplicationConfigurationProducer<T extends Applica
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Override {@link #getConfigurationFactory()}.
|
||||
*/
|
||||
@Deprecated
|
||||
public AbstractApplicationConfigurationProducer(@NotNull ApplicationConfigurationType configurationType) {
|
||||
super(configurationType);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean setupConfigurationFromContext(@NotNull T configuration,
|
||||
@NotNull ConfigurationContext context,
|
||||
|
||||
@@ -28,18 +28,10 @@ public abstract class JUnitPatcher implements PluginAware {
|
||||
return myPlugin;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated override {@link #patchJavaParameters(Module, JavaParameters)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public void patchJavaParameters(JavaParameters javaParameters) {
|
||||
}
|
||||
|
||||
public void patchJavaParameters(@NotNull Project project, @Nullable Module module, JavaParameters javaParameters) {
|
||||
patchJavaParameters(module, javaParameters);
|
||||
}
|
||||
|
||||
public void patchJavaParameters(@Nullable Module module, JavaParameters javaParameters) {
|
||||
patchJavaParameters(javaParameters);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.execution;
|
||||
|
||||
import com.intellij.execution.configurations.JavaRunConfigurationModule;
|
||||
import com.intellij.execution.util.ExecutionErrorDialog;
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
@@ -73,15 +72,6 @@ public final class JavaExecutionUtil {
|
||||
|
||||
@Nullable
|
||||
public static @NlsSafe String getPresentableClassName(@Nullable String rtClassName) {
|
||||
return getPresentableClassName(rtClassName, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link JavaExecutionUtil#getPresentableClassName(String)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Nullable
|
||||
public static String getPresentableClassName(@Nullable String rtClassName, @SuppressWarnings("unused") JavaRunConfigurationModule configurationModule) {
|
||||
if (StringUtil.isEmpty(rtClassName)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -18,8 +18,6 @@ package com.intellij.facet.impl.ui;
|
||||
|
||||
import com.intellij.facet.Facet;
|
||||
import com.intellij.facet.ui.FacetEditorContext;
|
||||
import com.intellij.ide.util.projectWizard.ModuleBuilder;
|
||||
import com.intellij.ide.util.projectWizard.WizardContext;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.roots.ModifiableRootModel;
|
||||
@@ -50,12 +48,6 @@ public abstract class ProjectConfigurableContext extends FacetEditorContextBase
|
||||
myModule = facet.getModule();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public ModuleBuilder getModuleBuilder() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isNewFacet() {
|
||||
return myNewFacet;
|
||||
@@ -85,12 +77,6 @@ public abstract class ProjectConfigurableContext extends FacetEditorContextBase
|
||||
return myModuleConfigurationState.getRootModel();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public WizardContext getWizardContext() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Library createProjectLibrary(final String baseName, final VirtualFile[] roots, final VirtualFile[] sources) {
|
||||
return getContainer().createLibrary(baseName, LibrariesContainer.LibraryLevel.PROJECT, roots, sources);
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2013 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.framework.library;
|
||||
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.net.URL;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
/**
|
||||
* @deprecated use {@link DownloadableLibraryType} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class DownloadableLibraryTypeBase extends DownloadableLibraryType {
|
||||
protected DownloadableLibraryTypeBase(@NotNull Supplier<@Nls(capitalization = Nls.Capitalization.Title) String> libraryCategoryName,
|
||||
@NotNull String libraryTypeId,
|
||||
@NotNull String groupId,
|
||||
@Nullable Icon icon,
|
||||
URL @NotNull ... localUrls) {
|
||||
super(libraryCategoryName, libraryTypeId, groupId, icon, localUrls);
|
||||
}
|
||||
}
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2013 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.framework.library;
|
||||
|
||||
import com.intellij.framework.FrameworkTypeEx;
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #LibraryBasedFrameworkSupportProvider} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public class UnderlyingFrameworkSupportProviderBase extends LibraryBasedFrameworkSupportProvider {
|
||||
public UnderlyingFrameworkSupportProviderBase(FrameworkTypeEx frameworkType,
|
||||
Class<? extends DownloadableLibraryType> libraryTypeClass) {
|
||||
super(frameworkType, libraryTypeClass);
|
||||
}
|
||||
}
|
||||
-10
@@ -65,16 +65,6 @@ public abstract class AbstractExternalProjectImportBuilder<C extends AbstractImp
|
||||
|
||||
private DataNode<ProjectData> myExternalProjectNode;
|
||||
|
||||
/**
|
||||
* @deprecated use {@link AbstractExternalProjectImportBuilder#AbstractExternalProjectImportBuilder(ProjectDataManager, NotNullFactory, ProjectSystemId)}
|
||||
*/
|
||||
@Deprecated
|
||||
public AbstractExternalProjectImportBuilder(@NotNull com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager projectDataManager,
|
||||
@NotNull C control,
|
||||
@NotNull ProjectSystemId externalSystemId) {
|
||||
this((ProjectDataManager)projectDataManager, control, externalSystemId);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link AbstractExternalProjectImportBuilder#AbstractExternalProjectImportBuilder(ProjectDataManager, NotNullFactory, ProjectSystemId)}
|
||||
*/
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2016 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.roots.ui.configuration;
|
||||
|
||||
import com.intellij.openapi.roots.libraries.ui.RootDetector;
|
||||
|
||||
/**
|
||||
* @deprecated please use {@link LibrarySourceRootDetectorUtil} directly
|
||||
*/
|
||||
@Deprecated
|
||||
public class PathUIUtils extends LibrarySourceRootDetectorUtil {
|
||||
public static final RootDetector JAVA_SOURCE_ROOT_DETECTOR = new LibraryJavaSourceRootDetector();
|
||||
|
||||
}
|
||||
@@ -4,8 +4,6 @@ package com.intellij.facet.mock;
|
||||
|
||||
import com.intellij.facet.Facet;
|
||||
import com.intellij.facet.impl.ui.FacetEditorContextBase;
|
||||
import com.intellij.ide.util.projectWizard.ModuleBuilder;
|
||||
import com.intellij.ide.util.projectWizard.WizardContext;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.roots.ModifiableRootModel;
|
||||
@@ -61,12 +59,6 @@ public class MockFacetEditorContext extends FacetEditorContextBase {
|
||||
return myProject;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public ModuleBuilder getModuleBuilder() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isNewFacet() {
|
||||
return myNewFacet;
|
||||
@@ -96,12 +88,6 @@ public class MockFacetEditorContext extends FacetEditorContextBase {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public WizardContext getWizardContext() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Library createProjectLibrary(final String name, final VirtualFile[] roots, final VirtualFile[] sources) {
|
||||
throw new UnsupportedOperationException();
|
||||
|
||||
@@ -92,9 +92,4 @@ public abstract class RefJavaUtil {
|
||||
public void addTypeReference(PsiElement psiElement, PsiType psiType, RefManager refManager) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void addTypeReference(PsiElement psiElement, PsiType psiType, RefManager refManager, @Nullable RefJavaElement refElement) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,6 @@ package com.intellij.lang.jvm.actions;
|
||||
|
||||
import com.intellij.lang.jvm.JvmModifier;
|
||||
import com.intellij.lang.jvm.types.JvmSubstitutor;
|
||||
import com.intellij.psi.codeStyle.SuggestedNameInfo;
|
||||
import kotlin.Pair;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Collection;
|
||||
@@ -21,12 +19,6 @@ public interface CreateExecutableRequest extends ActionRequest {
|
||||
@NotNull
|
||||
JvmSubstitutor getTargetSubstitutor();
|
||||
|
||||
@Deprecated
|
||||
@NotNull
|
||||
default List<Pair<SuggestedNameInfo, List<ExpectedType>>> getParameters() {
|
||||
return CompatibilityUtil.getParameters(getExpectedParameters());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
List<ExpectedParameter> getExpectedParameters();
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.lang.jvm.actions
|
||||
|
||||
import com.intellij.lang.jvm.JvmModifier
|
||||
import com.intellij.lang.jvm.types.JvmType
|
||||
|
||||
@Deprecated("use api based on ChangeModifierRequest or CreateMethodRequest")
|
||||
sealed class MemberRequest {
|
||||
|
||||
@Deprecated("use `com.intellij.lang.jvm.actions.CreateMethodRequest`")
|
||||
class Property(
|
||||
val propertyName: String,
|
||||
val visibilityModifier: JvmModifier,
|
||||
val propertyType: JvmType,
|
||||
val setterRequired: Boolean,
|
||||
val getterRequired: Boolean
|
||||
) : MemberRequest()
|
||||
|
||||
@Deprecated("use `com.intellij.lang.jvm.actions.ChangeModifierRequest`")
|
||||
class Modifier(
|
||||
val modifier: JvmModifier,
|
||||
val shouldPresent: Boolean
|
||||
) : MemberRequest()
|
||||
|
||||
}
|
||||
@@ -165,7 +165,6 @@
|
||||
<extensionPoint qualifiedName="com.intellij.compiler.task" area="IDEA_PROJECT" beanClass="com.intellij.compiler.CompileTaskBean" dynamic="true">
|
||||
<with attribute="implementation" implements="com.intellij.openapi.compiler.CompileTask"/>
|
||||
</extensionPoint>
|
||||
<extensionPoint qualifiedName="com.intellij.compilerSettingsFactory" area="IDEA_PROJECT" interface="com.intellij.compiler.CompilerSettingsFactory" dynamic="true"/>
|
||||
<extensionPoint qualifiedName="com.intellij.compileServer.plugin" beanClass="com.intellij.compiler.server.CompileServerPlugin" dynamic="true"/>
|
||||
<extensionPoint qualifiedName="com.intellij.buildProcess.parametersProvider" area="IDEA_PROJECT"
|
||||
interface="com.intellij.compiler.server.BuildProcessParametersProvider" dynamic="true"/>
|
||||
|
||||
+7
-4
@@ -27,9 +27,12 @@ import com.intellij.psi.PsiReference;
|
||||
import com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference;
|
||||
import com.intellij.psi.impl.source.resolve.reference.impl.providers.JavaClassReference;
|
||||
import com.intellij.psi.impl.source.resolve.reference.impl.providers.JavaClassReferenceSet;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author peter
|
||||
*/
|
||||
@@ -37,7 +40,7 @@ public class JavaClassReferenceCompletionContributor extends CompletionContribut
|
||||
@Override
|
||||
public void duringCompletion(@NotNull CompletionInitializationContext context) {
|
||||
JavaClassReference reference = findJavaClassReference(context.getFile(), context.getStartOffset());
|
||||
if (reference != null && reference.getExtendClassNames() != null) {
|
||||
if (reference != null && !reference.getSuperClasses().isEmpty()) {
|
||||
JavaClassReferenceSet set = reference.getJavaClassReferenceSet();
|
||||
context.setReplacementOffset(set.getRangeInElement().getEndOffset() + set.getElement().getTextRange().getStartOffset());
|
||||
}
|
||||
@@ -51,14 +54,14 @@ public class JavaClassReferenceCompletionContributor extends CompletionContribut
|
||||
return;
|
||||
}
|
||||
|
||||
String[] extendClassNames = reference.getExtendClassNames();
|
||||
List<String> extendClassNames = reference.getSuperClasses();
|
||||
PsiElement context = reference.getCompletionContext();
|
||||
if (extendClassNames != null && context instanceof PsiPackage) {
|
||||
if (!extendClassNames.isEmpty() && context instanceof PsiPackage) {
|
||||
if (parameters.getCompletionType() == CompletionType.SMART) {
|
||||
JavaClassReferenceSet set = reference.getJavaClassReferenceSet();
|
||||
int setStart = set.getRangeInElement().getStartOffset() + set.getElement().getTextRange().getStartOffset();
|
||||
String fullPrefix = parameters.getPosition().getContainingFile().getText().substring(setStart, parameters.getOffset());
|
||||
reference.processSubclassVariants((PsiPackage)context, extendClassNames, result.withPrefixMatcher(fullPrefix));
|
||||
reference.processSubclassVariants((PsiPackage)context, ArrayUtil.toStringArray(extendClassNames), result.withPrefixMatcher(fullPrefix));
|
||||
return;
|
||||
}
|
||||
result.addLookupAdvertisement(JavaBundle.message("press.0.to.see.inheritors.of.1",
|
||||
|
||||
@@ -43,14 +43,6 @@ public class MarkerType {
|
||||
private final Function<PsiElement, String> myTooltip;
|
||||
@NotNull private final String myDebugName;
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #MarkerType(String, Function, LineMarkerNavigator)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public MarkerType(@NotNull Function<PsiElement, String> tooltip, @NotNull final LineMarkerNavigator navigator) {
|
||||
this("Unknown", tooltip, navigator);
|
||||
}
|
||||
|
||||
public MarkerType(@NotNull String debugName, @NotNull Function<PsiElement, String> tooltip, @NotNull final LineMarkerNavigator navigator) {
|
||||
myTooltip = tooltip;
|
||||
myDebugName = debugName;
|
||||
|
||||
@@ -46,12 +46,6 @@ public interface ConstructorBodyGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #generateFieldInitialization(StringBuilder, PsiField[], PsiParameter[], Collection)}
|
||||
*/
|
||||
@Deprecated
|
||||
default void generateFieldInitialization(@NotNull StringBuilder buffer, PsiField @NotNull [] fields, PsiParameter @NotNull [] parameters) {}
|
||||
|
||||
default void appendSemicolon(@NotNull StringBuilder buffer) {}
|
||||
|
||||
default void generateSuperCallIfNeeded(@NotNull StringBuilder buffer, PsiParameter @NotNull [] parameters) {
|
||||
|
||||
-10
@@ -153,16 +153,6 @@ public final class JavaPostfixTemplatesUtils {
|
||||
public static final Condition<PsiElement> IS_NOT_PRIMITIVE =
|
||||
element -> element instanceof PsiExpression && isNotPrimitiveTypeExpression((PsiExpression)element);
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #isArray(PsiType)}
|
||||
*/
|
||||
@Deprecated public static final Condition<PsiElement> IS_ARRAY = element -> {
|
||||
if (!(element instanceof PsiExpression)) return false;
|
||||
|
||||
PsiType type = ((PsiExpression)element).getType();
|
||||
return isArray(type);
|
||||
};
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #isIterable(PsiType)} / {@link #isArray(PsiType)}
|
||||
*/
|
||||
|
||||
+3
-3
@@ -20,19 +20,19 @@ import org.jetbrains.annotations.Nullable;
|
||||
public class DefaultFileTemplateUsageInspection extends AbstractBaseJavaLocalInspectionTool {
|
||||
|
||||
/**
|
||||
* @deprecated unused, left for compatibility
|
||||
* @deprecated unused, left to avoid modifications in config files
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean CHECK_FILE_HEADER = true;
|
||||
|
||||
/**
|
||||
* @deprecated unused, left for compatibility
|
||||
* @deprecated unused, left to avoid modifications in config files
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean CHECK_TRY_CATCH_SECTION = true;
|
||||
|
||||
/**
|
||||
* @deprecated unused, left for compatibility
|
||||
* @deprecated unused, left to avoid modifications in config files
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean CHECK_METHOD_BODY = true;
|
||||
|
||||
@@ -61,6 +61,7 @@ public class JavaDocLocalInspection extends LocalInspectionTool {
|
||||
public Options FIELD_OPTIONS = new Options("none", "");
|
||||
public boolean IGNORE_DEPRECATED;
|
||||
public boolean IGNORE_JAVADOC_PERIOD = true;
|
||||
/** @deprecated unused, left to avoid modifications in config files */
|
||||
@Deprecated
|
||||
public boolean IGNORE_DUPLICATED_THROWS;
|
||||
public boolean IGNORE_POINT_TO_ITSELF;
|
||||
|
||||
-2
@@ -43,7 +43,5 @@ internal abstract class CreateExecutableFromJavaUsageRequest<out T : PsiCall>(
|
||||
}
|
||||
}
|
||||
|
||||
override fun getParameters() = getParameters(expectedParameters, project)
|
||||
|
||||
val context get() = call.parentOfTypes(PsiMethod::class, PsiClass::class)
|
||||
}
|
||||
|
||||
@@ -37,8 +37,5 @@ class CreateBeanPropertyRequest(
|
||||
private val myParameters = if (isSetter) listOf(expectedParameter(type, propertyName)) else emptyList()
|
||||
override fun getExpectedParameters() = myParameters
|
||||
|
||||
private val oldParameters = getParameters(myParameters, project)
|
||||
override fun getParameters() = oldParameters
|
||||
|
||||
override fun isValid() = type.isValid
|
||||
}
|
||||
|
||||
-10
@@ -29,16 +29,6 @@ public class CommentFormatter {
|
||||
private final JDParser myParser;
|
||||
private final Project myProject;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link ##CommentFormatter(PsiFile)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public CommentFormatter(@NotNull Project project) {
|
||||
mySettings = CodeStyle.getSettings(project);
|
||||
myParser = new JDParser(mySettings);
|
||||
myProject = project;
|
||||
}
|
||||
|
||||
public CommentFormatter(@NotNull PsiFile file) {
|
||||
mySettings = CodeStyle.getSettings(file);
|
||||
myParser = new JDParser(mySettings);
|
||||
|
||||
+1
-10
@@ -37,7 +37,6 @@ import com.intellij.psi.search.searches.ClassInheritorsSearch;
|
||||
import com.intellij.psi.util.ClassKind;
|
||||
import com.intellij.psi.util.ClassUtil;
|
||||
import com.intellij.psi.util.PsiUtil;
|
||||
import com.intellij.util.ArrayUtilRt;
|
||||
import com.intellij.util.Consumer;
|
||||
import com.intellij.util.IncorrectOperationException;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
@@ -261,13 +260,6 @@ public class JavaClassReference extends GenericReference implements PsiJavaRefer
|
||||
return contextRef.resolve();
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #getSuperClasses()} instead */
|
||||
@Deprecated
|
||||
public String @Nullable [] getExtendClassNames() {
|
||||
List<String> result = getSuperClasses();
|
||||
return result.isEmpty() ? null : ArrayUtilRt.toStringArray(result);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public List<String> getSuperClasses() {
|
||||
List<String> values = JavaClassReferenceProvider.SUPER_CLASSES.getValue(getOptions());
|
||||
@@ -489,8 +481,7 @@ public class JavaClassReference extends GenericReference implements PsiJavaRefer
|
||||
private List<? extends LocalQuickFix> registerFixes() {
|
||||
final List<LocalQuickFix> list = QuickFixFactory.getInstance().registerOrderEntryFixes(new QuickFixActionRegistrarImpl(null), this);
|
||||
|
||||
final String[] extendClasses = getExtendClassNames();
|
||||
final String extendClass = extendClasses != null && extendClasses.length > 0 ? extendClasses[0] : null;
|
||||
final String extendClass = ContainerUtil.getFirstItem(getSuperClasses());
|
||||
|
||||
final JavaClassReference[] references = getJavaClassReferenceSet().getAllReferences();
|
||||
PsiPackage contextPackage = null;
|
||||
|
||||
@@ -1133,17 +1133,6 @@ public class InlineMethodProcessor extends BaseRefactoringProcessor {
|
||||
return ((PsiAssignmentExpression)expression).getRExpression();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #checkUnableToInsertCodeBlock(PsiCodeBlock, PsiElement)}
|
||||
*/
|
||||
@Deprecated
|
||||
public static String checkCalledInSuperOrThisExpr(PsiCodeBlock methodBody, final PsiElement element) {
|
||||
return checkUnableToInsertCodeBlock(methodBody, element,
|
||||
expr -> JavaPsiConstructorUtil.isConstructorCall(expr) && expr.getMethodExpression() != element)
|
||||
? JavaRefactoringBundle.message("inline.method.multiline.method.in.ctor.call")
|
||||
: null;
|
||||
}
|
||||
|
||||
public static @NlsContexts.DialogMessage String checkUnableToInsertCodeBlock(PsiCodeBlock methodBody, final PsiElement element) {
|
||||
if (checkUnableToInsertCodeBlock(methodBody, element,
|
||||
expr -> JavaPsiConstructorUtil.isConstructorCall(expr) && expr.getMethodExpression() != element)) {
|
||||
|
||||
-11
@@ -80,17 +80,6 @@ public final class MoveClassesOrPackagesUtil {
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated Use {@link MoveClassesOrPackagesUtil#findNonCodeUsages(PsiElement, SearchScope, boolean, boolean, String, Collection)} */
|
||||
@Deprecated
|
||||
public static void findNonCodeUsages(boolean searchInStringsAndComments,
|
||||
boolean searchInNonJavaFiles,
|
||||
final PsiElement element,
|
||||
final String newQName,
|
||||
ArrayList<? super UsageInfo> results) {
|
||||
findNonCodeUsages(element, GlobalSearchScope.projectScope(element.getProject()),
|
||||
searchInStringsAndComments, searchInNonJavaFiles, newQName, results);
|
||||
}
|
||||
|
||||
public static void findNonCodeUsages(@NotNull PsiElement element,
|
||||
@NotNull SearchScope searchScope,
|
||||
boolean searchInStringsAndComments,
|
||||
|
||||
@@ -69,14 +69,6 @@ public final class RefactoringUtil {
|
||||
return PsiUtil.getEnclosingStaticElement(element, aClass) != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link PsiTypesUtil#hasUnresolvedComponents(PsiType)}
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean isResolvableType(PsiType type) {
|
||||
return !PsiTypesUtil.hasUnresolvedComponents(type);
|
||||
}
|
||||
|
||||
public static PsiElement replaceOccurenceWithFieldRef(PsiExpression occurrence, PsiField newField, PsiClass destinationClass)
|
||||
throws IncorrectOperationException {
|
||||
final PsiManager manager = destinationClass.getManager();
|
||||
|
||||
-12
@@ -84,16 +84,4 @@ public final class DirectClassInheritorsSearch extends ExtensibleQueryFactory<Ps
|
||||
public static Query<PsiClass> search(@NotNull SearchParameters parameters) {
|
||||
return INSTANCE.createUniqueResultsQuery(parameters);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #search(PsiClass, SearchScope, boolean)} instead
|
||||
*/
|
||||
@NotNull
|
||||
@Deprecated
|
||||
public static Query<PsiClass> search(@NotNull PsiClass aClass,
|
||||
@NotNull SearchScope scope,
|
||||
boolean includeAnonymous,
|
||||
final boolean checkInheritance) {
|
||||
return search(aClass, scope, includeAnonymous);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.psi;
|
||||
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.openapi.extensions.ProjectExtensionPointName;
|
||||
import com.intellij.openapi.util.Condition;
|
||||
import com.intellij.psi.search.GlobalSearchScope;
|
||||
@@ -25,12 +24,6 @@ import java.util.function.Predicate;
|
||||
public abstract class PsiElementFinder {
|
||||
public static final ProjectExtensionPointName<PsiElementFinder> EP = new ProjectExtensionPointName<>("com.intellij.java.elementFinder");
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #EP}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final ExtensionPointName<PsiElementFinder> EP_NAME = new ExtensionPointName<>("com.intellij.java.elementFinder");
|
||||
|
||||
/**
|
||||
* Searches the specified scope within the project for a class with the specified full-qualified
|
||||
* name and returns one if it is found.
|
||||
|
||||
@@ -27,19 +27,6 @@ public final class PsiConcatenationUtil {
|
||||
|
||||
// externally used
|
||||
|
||||
/**
|
||||
* @deprecated use {@code buildUnescapedFormatString} instead and use either
|
||||
* {@link StringUtil#escapeStringCharacters(String)}
|
||||
* or
|
||||
* {@link PsiLiteralUtil#escapeTextBlockCharacters(String)}
|
||||
* to escape the resulting string.
|
||||
*/
|
||||
@Deprecated
|
||||
public static void buildFormatString(PsiExpression expression, StringBuilder formatString,
|
||||
List<? super PsiExpression> formatParameters, boolean printfFormat) {
|
||||
buildFormatString(expression, formatString, formatParameters, printfFormat, true);
|
||||
}
|
||||
|
||||
private static void buildFormatString(PsiExpression expression, StringBuilder formatString,
|
||||
List<? super PsiExpression> formatParameters, boolean printfFormat, boolean escape) {
|
||||
if (expression instanceof PsiLiteralExpression) {
|
||||
|
||||
@@ -312,14 +312,6 @@ public final class PsiTypesUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated not compliant to specification, use {@link PsiTypesUtil#isDenotableType(PsiType, PsiElement)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static boolean isDenotableType(@Nullable PsiType type) {
|
||||
return !(type instanceof PsiWildcardType || type instanceof PsiCapturedWildcardType);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param context in which type should be checked
|
||||
* @return false if type is null or has no explicit canonical type representation (e. g. intersection type)
|
||||
*/
|
||||
|
||||
@@ -78,15 +78,6 @@ public abstract class NonClasspathClassFinder extends PsiElementFinder {
|
||||
return cache;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link PackageDirectoryCache#createCache(List)}
|
||||
*/
|
||||
@NotNull
|
||||
@Deprecated
|
||||
protected static PackageDirectoryCache createCache(@NotNull final List<? extends VirtualFile> roots) {
|
||||
return PackageDirectoryCache.createCache(roots);
|
||||
}
|
||||
|
||||
public void clearCache() {
|
||||
myCache = null;
|
||||
}
|
||||
|
||||
@@ -300,24 +300,6 @@ public final class PsiImplUtil {
|
||||
return null;
|
||||
}
|
||||
|
||||
/** @deprecated use {@link AnnotationTargetUtil#findAnnotationTarget(PsiAnnotation, PsiAnnotation.TargetType...)} (to be removed ion IDEA 17) */
|
||||
@Deprecated
|
||||
public static PsiAnnotation.TargetType findApplicableTarget(@NotNull PsiAnnotation annotation, PsiAnnotation.TargetType @NotNull ... types) {
|
||||
return AnnotationTargetUtil.findAnnotationTarget(annotation, types);
|
||||
}
|
||||
|
||||
/** @deprecated use {@link AnnotationTargetUtil#findAnnotationTarget(PsiClass, PsiAnnotation.TargetType...)} (to be removed ion IDEA 17) */
|
||||
@Deprecated
|
||||
public static PsiAnnotation.TargetType findApplicableTarget(@NotNull PsiClass annotationType, PsiAnnotation.TargetType @NotNull ... types) {
|
||||
return AnnotationTargetUtil.findAnnotationTarget(annotationType, types);
|
||||
}
|
||||
|
||||
/** @deprecated use {@link AnnotationTargetUtil#getTargetsForLocation(PsiAnnotationOwner)} (to be removed ion IDEA 17) */
|
||||
@Deprecated
|
||||
public static PsiAnnotation.TargetType @NotNull [] getTargetsForLocation(@Nullable PsiAnnotationOwner owner) {
|
||||
return AnnotationTargetUtil.getTargetsForLocation(owner);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static ASTNode findDocComment(@NotNull CompositeElement element) {
|
||||
TreeElement node = element.getFirstChildNode();
|
||||
|
||||
@@ -256,12 +256,6 @@ public class ClsFileImpl extends PsiBinaryFileImpl
|
||||
throw ClsElementImpl.cannotModifyException(this);
|
||||
}
|
||||
|
||||
/** @deprecated Shouldn't be called from outside or overridden */
|
||||
@Deprecated
|
||||
public void appendMirrorText(@SuppressWarnings({"unused", "RedundantSuppression"}) int indentLevel, @NotNull StringBuilder buffer) {
|
||||
appendMirrorText(buffer);
|
||||
}
|
||||
|
||||
private void appendMirrorText(@NotNull StringBuilder buffer) {
|
||||
buffer.append(BANNER);
|
||||
|
||||
@@ -279,12 +273,6 @@ public class ClsFileImpl extends PsiBinaryFileImpl
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated Shouldn't be called from outside or overridden */
|
||||
@Deprecated
|
||||
public void setMirror(@NotNull TreeElement element) throws InvalidMirrorException {
|
||||
setFileMirror(element);
|
||||
}
|
||||
|
||||
private void setFileMirror(@NotNull TreeElement element) {
|
||||
PsiElement mirrorElement = SourceTreeToPsiMap.treeToPsiNotNull(element);
|
||||
if (!(mirrorElement instanceof PsiJavaFile)) {
|
||||
|
||||
@@ -27,9 +27,7 @@ public interface UnscrambleSupport<T extends JComponent> {
|
||||
ExtensionPointName<UnscrambleSupport> EP_NAME = ExtensionPointName.create("com.intellij.unscrambleSupport");
|
||||
|
||||
@Nullable
|
||||
default String unscramble(@NotNull Project project, @NotNull String text, @NotNull String logName, @Nullable T settings) {
|
||||
return unscramble(project, text, logName);
|
||||
}
|
||||
String unscramble(@NotNull Project project, @NotNull String text, @NotNull String logName, @Nullable T settings);
|
||||
|
||||
@NotNull
|
||||
@Contract(pure = true)
|
||||
@@ -39,13 +37,4 @@ public interface UnscrambleSupport<T extends JComponent> {
|
||||
default T createSettingsComponent() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated override {@link #unscramble(Project, String, String, JComponent)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
@Nullable
|
||||
default String unscramble(Project project, String text, String logName) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -137,7 +137,7 @@ public abstract class AbstractMethodResolveConverter<ParentType extends DomEleme
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Set<String> getAdditionalVariants() {
|
||||
public Set<String> getAdditionalVariants(@NotNull ConvertContext context) {
|
||||
return Collections.singleton(ALL_METHODS);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.codeInsight;
|
||||
|
||||
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link JavaCodeInsightTestCase} for Java-dependent tests,
|
||||
* {@link BasePlatformTestCase} for non-Java-dependent
|
||||
* tests
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class CodeInsightTestCase extends JavaCodeInsightTestCase {
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.codeInsight.completion;
|
||||
|
||||
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link JavaCompletionTestCase} for Java-dependent completion tests and
|
||||
* {@link BasePlatformTestCase} for non-Java-dependent
|
||||
* completion tests
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class CompletionTestCase extends JavaCompletionTestCase {
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.testFramework;
|
||||
|
||||
/**
|
||||
* @deprecated name of this class may be confusing, extend {@link JavaProjectTestCase} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class IdeaTestCase extends JavaProjectTestCase {
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.testFramework;
|
||||
|
||||
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
|
||||
|
||||
/**
|
||||
* NOTE: test was changed to <em>light</em> test in 2019.1 - use dedicated {@link ProjectDescriptor ProjectDescriptor} or
|
||||
* rollback project setup changes in {@code tearDown()} to avoid side effects.
|
||||
*
|
||||
* @deprecated Use {@link JavaInspectionTestCase} for Java-dependent tests,
|
||||
* {@link BasePlatformTestCase} for non-Java-dependent tests
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class InspectionTestCase extends JavaInspectionTestCase {
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.testFramework;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link LightJavaCodeInsightTestCase} for Java-dependent tests,
|
||||
* {@link LightPlatformCodeInsightTestCase} for non-Java-dependent tests
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class LightCodeInsightTestCase extends LightJavaCodeInsightTestCase {
|
||||
}
|
||||
@@ -128,7 +128,7 @@ class LightTestMigration {
|
||||
String pathText = '/' + relativePath.toString().replace('\\', '/');
|
||||
if (pathText.startsWith(LightJavaInspectionTestCase.INSPECTION_GADGETS_TEST_DATA_PATH)) {
|
||||
importedClasses.add(LightJavaInspectionTestCase.class);
|
||||
pathSpec = "LightInspectionTestCase.INSPECTION_GADGETS_TEST_DATA_PATH + \"" +
|
||||
pathSpec = "LightJavaInspectionTestCase.INSPECTION_GADGETS_TEST_DATA_PATH + \"" +
|
||||
StringUtil.escapeStringCharacters(
|
||||
pathText.substring(LightJavaInspectionTestCase.INSPECTION_GADGETS_TEST_DATA_PATH.length())) + '"';
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.testFramework;
|
||||
|
||||
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link JavaModuleTestCase} for Java-dependent tests,
|
||||
* {@link BasePlatformTestCase} for non-Java-dependent tess
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class ModuleTestCase extends JavaModuleTestCase {
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.testFramework;
|
||||
|
||||
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link JavaPsiTestCase} for Java-dependent tests,
|
||||
* {@link BasePlatformTestCase} for non-Java-dependent tests
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class PsiTestCase extends JavaPsiTestCase {
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.siyeh.ig;
|
||||
|
||||
import com.intellij.testFramework.fixtures.BasePlatformTestCase;
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link LightJavaInspectionTestCase} for Java-dependent tests,
|
||||
* {@link BasePlatformTestCase} for non-Java-dependent tests
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class LightInspectionTestCase extends LightJavaInspectionTestCase {
|
||||
}
|
||||
+2
-3
@@ -20,7 +20,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.jps.model.JpsElement;
|
||||
import org.jetbrains.jps.model.JpsElementFactory;
|
||||
import org.jetbrains.jps.model.JpsSimpleElement;
|
||||
import org.jetbrains.jps.model.java.JavaSourceRootProperties;
|
||||
import org.jetbrains.jps.model.java.JavaSourceRootType;
|
||||
import org.jetbrains.jps.model.module.JpsModuleSourceRoot;
|
||||
@@ -48,8 +47,8 @@ public class JpsSourceFolder extends JpsContentFolderBase implements SourceFolde
|
||||
@NotNull
|
||||
@Override
|
||||
public String getPackagePrefix() {
|
||||
final JpsSimpleElement<JavaSourceRootProperties> properties = getJavaProperties();
|
||||
return properties != null ? properties.getData().getPackagePrefix() : "";
|
||||
final @Nullable JavaSourceRootProperties properties = getJavaProperties();
|
||||
return properties != null ? properties.getPackagePrefix() : "";
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
-4
@@ -24,10 +24,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class NewExceptionWithoutArgumentsInspection extends BaseInspection {
|
||||
|
||||
@Deprecated
|
||||
@SuppressWarnings("PublicField")
|
||||
public boolean ignoreWithoutParameters;
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected String buildErrorString(Object... infos) {
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ import static com.intellij.util.ObjectUtils.tryCast;
|
||||
public class UnnecessaryLocalVariableInspection extends BaseInspection {
|
||||
public boolean m_ignoreImmediatelyReturnedVariables;
|
||||
|
||||
/** @deprecated unused, left for compatibility */
|
||||
/** @deprecated unused, left to avoid modifications in config files */
|
||||
@Deprecated
|
||||
public boolean m_ignoreAnnotatedVariables;
|
||||
|
||||
|
||||
@@ -53,14 +53,6 @@ public final class HighlightUtils {
|
||||
highlightElements(elementCollection, InspectionGadgetsBundle.message("press.escape.to.remove.highlighting.message"), editor);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Intention can be invoked on a non EDT thread with a mock editor, so usages highlighting in the selected editor is incorrect.
|
||||
* Please use {@link #highlightElement(PsiElement, Editor)} instead.
|
||||
*/
|
||||
public static void highlightElement(@NotNull PsiElement element, @NlsContexts.StatusBarText String statusBarText) {
|
||||
highlightElements(Collections.singleton(element), statusBarText);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Intention can be invoked on a non EDT thread with a mock editor, so usages highlighting in the selected editor is incorrect.
|
||||
* Please use {@link #highlightElements(Collection, Editor)} instead.
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.siyeh.ipp.psiutils;
|
||||
|
||||
import com.intellij.openapi.util.NlsContexts;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.siyeh.ig.psiutils.HighlightUtils;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public final class HighlightUtil {
|
||||
|
||||
private HighlightUtil() {}
|
||||
|
||||
/**
|
||||
* Used in an external plugin "Parameter Formatter Plugin 1.1".
|
||||
* @deprecated Use {@link HighlightUtils#highlightElement(PsiElement, String)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static void highlightElement(@NotNull PsiElement element, @NotNull final @NlsContexts.StatusBarText String statusBarText) {
|
||||
HighlightUtils.highlightElement(element, statusBarText);
|
||||
}
|
||||
}
|
||||
-2
@@ -72,8 +72,6 @@ internal abstract class CreateExecutableFromGroovyUsageRequest<out T : GrCall>(
|
||||
return if (resolved is GrAnonymousClassDefinition) resolved.baseClassType else type
|
||||
}
|
||||
|
||||
override fun getParameters() = getParameters(expectedParameters, project)
|
||||
|
||||
private class ParametersNameSupplier(suggested: List<Pair<PsiType, List<String>>>) {
|
||||
|
||||
private val namesCount = suggested
|
||||
|
||||
-11
@@ -25,17 +25,6 @@ public class BaseDecompiler {
|
||||
engine.addLibrary(library);
|
||||
}
|
||||
|
||||
/** @deprecated use {@link #addSource(File)} / {@link #addLibrary(File)} instead */
|
||||
@Deprecated
|
||||
public void addSpace(File file, boolean own) {
|
||||
if (own) {
|
||||
addSource(file);
|
||||
}
|
||||
else {
|
||||
addLibrary(file);
|
||||
}
|
||||
}
|
||||
|
||||
public void decompileContext() {
|
||||
try {
|
||||
engine.decompileContext();
|
||||
|
||||
-3
@@ -10,7 +10,6 @@ import com.intellij.psi.PsiModifier
|
||||
import com.intellij.psi.PsiSubstitutor
|
||||
import com.intellij.psi.PsiType
|
||||
import com.intellij.psi.codeStyle.JavaCodeStyleSettings
|
||||
import com.intellij.psi.codeStyle.SuggestedNameInfo
|
||||
import com.intellij.psi.util.createSmartPointer
|
||||
import com.intellij.psi.xml.XmlAttribute
|
||||
import com.intellij.psi.xml.XmlAttributeValue
|
||||
@@ -55,8 +54,6 @@ class CreateEventHandlerRequest(element: XmlAttributeValue) : CreateMethodReques
|
||||
return listOf(parameter)
|
||||
}
|
||||
|
||||
override fun getParameters(): List<Pair<SuggestedNameInfo, List<ExpectedType>>> = getParameters(expectedParameters, myProject)
|
||||
|
||||
override fun getModifiers(): Set<JvmModifier> = setOf(myVisibility)
|
||||
|
||||
override fun getAnnotations(): List<AnnotationRequest> = if (myVisibility != JvmModifier.PUBLIC) {
|
||||
|
||||
Reference in New Issue
Block a user