mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java compiler] API cleanup: mark CompileContext.isRebuildRequested and related methods as deprecated and remove implementations
This is needed to avoid confusion since these methods aren't called by the compilation engine anymore. GitOrigin-RevId: 203140c584e7ed667751468002c89cba4479e4d7
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d1fbdec880
commit
70dc7ee0e3
@@ -26,7 +26,6 @@ import com.intellij.openapi.util.UserDataHolderBase;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.pom.Navigatable;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.UUID;
|
||||
@@ -41,8 +40,6 @@ public final class CompileContextImpl extends UserDataHolderBase implements Comp
|
||||
private final boolean myMake;
|
||||
private final boolean myIsRebuild;
|
||||
private final boolean myIsAnnotationProcessorsEnabled;
|
||||
private boolean myRebuildRequested;
|
||||
private String myRebuildReason;
|
||||
private final ProjectFileIndex myProjectFileIndex; // cached for performance reasons
|
||||
private final ProjectCompileScope myProjectCompileScope;
|
||||
private final long myStartCompilationStamp;
|
||||
@@ -137,24 +134,6 @@ public final class CompileContextImpl extends UserDataHolderBase implements Comp
|
||||
return myProjectCompileScope;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void requestRebuildNextTime(String message) {
|
||||
if (!myRebuildRequested) {
|
||||
myRebuildRequested = true;
|
||||
myRebuildReason = message;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRebuildRequested() {
|
||||
return myRebuildRequested;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable String getRebuildReason() {
|
||||
return myRebuildReason;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ProgressIndicator getProgressIndicator() {
|
||||
return myBuildSession.getIndicator();
|
||||
|
||||
@@ -94,20 +94,6 @@ final class AutomakeCompileContext extends UserDataHolderBase implements Compile
|
||||
return myIndicator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void requestRebuildNextTime(String message) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRebuildRequested() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable String getRebuildReason() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Module getModuleByFile(@NotNull VirtualFile file) {
|
||||
return ProjectRootManager.getInstance(myProject).getFileIndex().getModuleForFile(file);
|
||||
|
||||
Reference in New Issue
Block a user