[java compiler] API cleanup: mark Compiler.validateConfiguration as deprecated and remove implementations

This is needed to avoid confusion since the method isn't called by the compilation engine anymore.

GitOrigin-RevId: ad95b74748623596cef8dd5a094a2b99c99c3c6e
This commit is contained in:
Nikolay Chashnikov
2025-06-25 10:01:46 +00:00
committed by intellij-monorepo-bot
parent 73af7f89bd
commit d1fbdec880
3 changed files with 6 additions and 15 deletions
@@ -367,11 +367,6 @@ public final class InspectionValidatorWrapper implements Validator {
return myValidator.getDescription();
}
@Override
public boolean validateConfiguration(CompileScope scope) {
return true;
}
@Override
public ValidityState createValidityState(DataInput in) throws IOException {
return PsiElementsValidityState.load(in);
@@ -27,10 +27,11 @@ public interface Compiler {
String getDescription();
/**
* Called before compilation starts. If at least one of registered compilers returned false, compilation won't start.
*
* @param scope the scope on which the compilation is started.
* @return true if everything is ok, false otherwise
* @deprecated isn't called by the compilation engine anymore; if the configuration of a specific compiled is invalid, it should report an
* error via {@link CompileContext#addMessage}.
*/
boolean validateConfiguration(CompileScope scope);
@Deprecated(forRemoval = true)
default boolean validateConfiguration(CompileScope scope) {
return true;
}
}
@@ -57,11 +57,6 @@ public final class Form2SourceCompiler implements SourceInstrumentingCompiler{
return UIDesignerBundle.message("component.gui.designer.form.to.source.compiler");
}
@Override
public boolean validateConfiguration(CompileScope scope) {
return true;
}
@Override
public ProcessingItem @NotNull [] getProcessingItems(final @NotNull CompileContext context) {
final Project project = context.getProject();