mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
committed by
intellij-monorepo-bot
parent
73af7f89bd
commit
d1fbdec880
-5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user