mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] API cleanup: remove unused deprecated API (IDEA-305637)
GitOrigin-RevId: 3aa124f6e8794b49c3e0e7275befc29e7bf6fa79
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9c8bd37154
commit
a0db56f0cf
@@ -207,11 +207,6 @@ public class CompilerManagerImpl extends CompilerManager {
|
||||
myCompilableTypes.add(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeCompilableFileType(@NotNull FileType type) {
|
||||
myCompilableTypes.remove(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCompilableFileType(@NotNull FileType type) {
|
||||
if (myCompilableTypes.contains(type)) {
|
||||
|
||||
@@ -40,7 +40,6 @@ import com.intellij.workspaceModel.storage.EntityChange;
|
||||
import com.intellij.workspaceModel.storage.VersionedStorageChange;
|
||||
import com.intellij.workspaceModel.storage.bridgeEntities.ContentRootEntity;
|
||||
import com.intellij.workspaceModel.storage.bridgeEntities.ModuleEntity;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import org.jetbrains.annotations.Contract;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -141,14 +140,6 @@ public final class DirtyScopeHolder extends UserDataHolderBase implements AsyncF
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link DirtyScopeHolder#upToDateCheckFinished(Collection, Collection)}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public void upToDateCheckFinished(Module @NotNull [] modules) {
|
||||
upToDateCheckFinished(ArraysKt.asList(modules), Collections.emptyList());
|
||||
}
|
||||
|
||||
public void upToDateCheckFinished(@Nullable Collection<@NotNull Module> allModules, @Nullable Collection<@NotNull Module> compiledModules) {
|
||||
compilationFinished(() -> {
|
||||
if (allModules != null) myVFSChangedModules.addAll(allModules);
|
||||
|
||||
-25
@@ -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 ClassPostProcessingCompiler extends FileProcessingCompiler {
|
||||
}
|
||||
@@ -71,17 +71,8 @@ public abstract class CompilerManager {
|
||||
* @param type the type for which the Compile action is enabled.
|
||||
* @deprecated use {@link CompilableFileTypesProvider} extension point to register compilable file types
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract void addCompilableFileType(@NotNull FileType type);
|
||||
|
||||
/**
|
||||
* Unregisters the type as a compilable type so that Compile action will be disabled on files of this type.
|
||||
*
|
||||
* @param type the type for which the Compile action is disabled.
|
||||
* @deprecated use {@link CompilableFileTypesProvider} extension point to register compilable file types
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public abstract void removeCompilableFileType(@NotNull FileType type);
|
||||
public abstract void addCompilableFileType(@NotNull FileType type);
|
||||
|
||||
/**
|
||||
* Checks if files of the specified type can be compiled by one of registered compilers.
|
||||
|
||||
@@ -1,81 +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;
|
||||
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.Chunk;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
* @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 TranslatingCompiler extends Compiler {
|
||||
|
||||
/**
|
||||
* Defines a single file compiled by the compiler.
|
||||
*/
|
||||
interface OutputItem {
|
||||
/**
|
||||
* Returns the path to the output file.
|
||||
*
|
||||
* @return absolute path of the output file ('/' slashes used)
|
||||
*/
|
||||
String getOutputPath();
|
||||
|
||||
/**
|
||||
* Returns the path to the source file.
|
||||
*
|
||||
* @return the source file to be compiled
|
||||
*/
|
||||
VirtualFile getSourceFile();
|
||||
}
|
||||
|
||||
interface OutputSink {
|
||||
/**
|
||||
*
|
||||
* @param outputRoot output directory
|
||||
* @param items output items that were successfully compiled.
|
||||
* @param filesToRecompile virtual files that should be considered as "modified" next time compilation is invoked.
|
||||
*/
|
||||
void add(String outputRoot, Collection<OutputItem> items, VirtualFile[] filesToRecompile);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Checks if the compiler can compile the specified file.
|
||||
*
|
||||
* @param file the file to check.
|
||||
* @param context the context for the current compile operation.
|
||||
* @return true if can compile the file, false otherwise. If the method returns false, {@code file}
|
||||
* will not be included in the list of files passed to {@link #compile(CompileContext, Chunk, VirtualFile[], OutputSink)}.
|
||||
*/
|
||||
boolean isCompilableFile(VirtualFile file, CompileContext context);
|
||||
|
||||
/**
|
||||
* Compiles the specified files.
|
||||
*
|
||||
* @param context the context for the current compile operation.
|
||||
* @param moduleChunk contains modules that form a cycle. If project module graph has no cycles, a chunk corresponds to a single module
|
||||
* @param files the source files to compile that correspond to the module chunk
|
||||
* @param sink storage that accepts compiler output results
|
||||
*/
|
||||
void compile(CompileContext context, Chunk<Module> moduleChunk, VirtualFile[] files, OutputSink sink);
|
||||
}
|
||||
@@ -23,7 +23,6 @@ import com.intellij.debugger.jdi.VirtualMachineProxyImpl;
|
||||
import com.intellij.debugger.settings.DebuggerSettings;
|
||||
import com.intellij.debugger.settings.NodeRendererSettings;
|
||||
import com.intellij.debugger.ui.breakpoints.*;
|
||||
import com.intellij.debugger.ui.tree.ValueDescriptor;
|
||||
import com.intellij.debugger.ui.tree.render.*;
|
||||
import com.intellij.execution.CantRunException;
|
||||
import com.intellij.execution.ExecutionException;
|
||||
@@ -202,37 +201,6 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
|
||||
return myReturnValueWatcher != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #getAutoRendererAsync(Type)}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public NodeRenderer getAutoRenderer(ValueDescriptor descriptor) {
|
||||
Type type = descriptor.getType();
|
||||
DebuggerManagerThreadImpl.assertIsManagerThread();
|
||||
// in case evaluation is not possible, force default renderer
|
||||
if (!isEvaluationPossible()) {
|
||||
return getDefaultRenderer(type);
|
||||
}
|
||||
|
||||
try {
|
||||
Object res = myNodeRenderersMap.get(type);
|
||||
if (res instanceof NodeRenderer) {
|
||||
return (NodeRenderer)res;
|
||||
}
|
||||
NodeRenderer renderer = myRenderers.stream().
|
||||
filter(NodeRenderer::isEnabled).
|
||||
filter(r -> DebuggerUtilsImpl.suppressExceptions(() -> r.isApplicable(type), false, true, ClassNotPreparedException.class)).
|
||||
findFirst().orElseGet(() -> getDefaultRenderer(type));
|
||||
myNodeRenderersMap.put(type, renderer);
|
||||
return renderer;
|
||||
}
|
||||
catch (ClassNotPreparedException e) {
|
||||
LOG.info(e);
|
||||
// use default, but do not cache
|
||||
return getDefaultRenderer(type);
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public CompletableFuture<List<NodeRenderer>> getApplicableRenderers(Type type) {
|
||||
return DebuggerUtilsImpl.getApplicableRenderers(myRenderers, type);
|
||||
|
||||
-9
@@ -18,15 +18,6 @@ public class JavaClassTreeElement extends JavaClassTreeElementBase<PsiClass> {
|
||||
super(inherited, cls);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #JavaClassTreeElement(PsiClass, boolean)}
|
||||
* @noinspection unused
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public JavaClassTreeElement(PsiClass cls, boolean inherited, Set<PsiClass> parents) {
|
||||
this(cls, inherited);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public Collection<StructureViewTreeElement> getChildrenBase() {
|
||||
|
||||
Reference in New Issue
Block a user