mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
cleanup: replace all methods identical to super with delegate
batch fix for inspection: method is identical to its super method GitOrigin-RevId: bb9fbb32ba5fe09613c28e98eb3dad540d6322f1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a227e4a1a5
commit
42746dc58f
@@ -40,6 +40,6 @@ public class ReloadFileAction extends CompileAction {
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class DeconstructionPatternEvaluator extends PatternEvaluator {
|
||||
|
||||
@Override
|
||||
public Object evaluate(EvaluationContextImpl context) throws EvaluateException {
|
||||
return null;
|
||||
return super.evaluate(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -31,6 +31,6 @@ public class TemplateProjectStructureAction extends ShowStructureSettingsAction
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
}
|
||||
@@ -202,7 +202,7 @@ public class MockPsiLambda extends MockMirror implements Method {
|
||||
|
||||
@Override
|
||||
public MockVirtualMachine virtualMachine() {
|
||||
return myVirtualMachine;
|
||||
return super.virtualMachine();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -71,7 +71,7 @@ public class MockArrayType extends MockReferenceType implements ArrayType {
|
||||
|
||||
@Override
|
||||
public boolean isVerified() {
|
||||
return true;
|
||||
return super.isVerified();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -44,7 +44,7 @@ public final class InputFileObject extends JpsFileObject {
|
||||
|
||||
@Override
|
||||
public OutputStream openOutputStream() throws IOException {
|
||||
throw new UnsupportedOperationException();
|
||||
return super.openOutputStream();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -50,7 +50,7 @@ public final class ZipFileObject extends JpsFileObject {
|
||||
|
||||
@Override
|
||||
public OutputStream openOutputStream() throws IOException {
|
||||
throw new UnsupportedOperationException();
|
||||
return super.openOutputStream();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -770,37 +770,37 @@ final class ClassfileAnalyzer {
|
||||
|
||||
@Override
|
||||
public SignatureVisitor visitClassBound() {
|
||||
return this;
|
||||
return super.visitClassBound();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SignatureVisitor visitInterfaceBound() {
|
||||
return this;
|
||||
return super.visitInterfaceBound();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SignatureVisitor visitSuperclass() {
|
||||
return this;
|
||||
return super.visitSuperclass();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SignatureVisitor visitInterface() {
|
||||
return this;
|
||||
return super.visitInterface();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SignatureVisitor visitParameterType() {
|
||||
return this;
|
||||
return super.visitParameterType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SignatureVisitor visitReturnType() {
|
||||
return this;
|
||||
return super.visitReturnType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public SignatureVisitor visitExceptionType() {
|
||||
return this;
|
||||
return super.visitExceptionType();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -811,14 +811,14 @@ final class ClassfileAnalyzer {
|
||||
|
||||
@Override
|
||||
public SignatureVisitor visitArrayType() {
|
||||
return this;
|
||||
return super.visitArrayType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visitInnerClassType(String name) { }
|
||||
|
||||
@Override
|
||||
public void visitTypeArgument() { }
|
||||
public void visitTypeArgument() { super.visitTypeArgument(); }
|
||||
|
||||
@Override
|
||||
public SignatureVisitor visitTypeArgument(char wildcard) {
|
||||
@@ -826,7 +826,7 @@ final class ClassfileAnalyzer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void visitEnd() { }
|
||||
public void visitEnd() { super.visitEnd(); }
|
||||
|
||||
@Override
|
||||
public void visitClassType(String name) {
|
||||
|
||||
@@ -57,10 +57,10 @@ public abstract class WolfTheProblemSolver {
|
||||
@Deprecated(forRemoval = true)
|
||||
public abstract static class ProblemListener implements com.intellij.problems.ProblemListener {
|
||||
@Override
|
||||
public void problemsAppeared(@NotNull VirtualFile file) {}
|
||||
public void problemsAppeared(@NotNull VirtualFile file) { com.intellij.problems.ProblemListener.super.problemsAppeared(file); }
|
||||
|
||||
@Override
|
||||
public void problemsDisappeared(@NotNull VirtualFile file) {}
|
||||
public void problemsDisappeared(@NotNull VirtualFile file) { com.intellij.problems.ProblemListener.super.problemsDisappeared(file); }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -48,7 +48,7 @@ public class DetachExternalProjectAction extends ExternalSystemNodeAction<Projec
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -239,7 +239,7 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return OccurenceNavigator.super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
private void updatePredefinedFiltersLater() {
|
||||
|
||||
@@ -29,7 +29,7 @@ public class GotoActionAction extends SearchEverywhereBaseAction implements Dumb
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
public static void openOptionOrPerformAction(@NotNull Object element,
|
||||
|
||||
@@ -303,7 +303,7 @@ public abstract class AbstractGotoSEContributor implements WeightedSearchEverywh
|
||||
|
||||
@Override
|
||||
public @NotNull List<SearchEverywhereCommandInfo> getSupportedCommands() {
|
||||
return Collections.emptyList();
|
||||
return WeightedSearchEverywhereContributor.super.getSupportedCommands();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -17,7 +17,7 @@ public final class BrowseTypeHierarchyAction extends BrowseHierarchyActionBase {
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -42,7 +42,7 @@ public class MoveModulesToSubGroupAction extends MoveModulesToGroupAction {
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -523,7 +523,7 @@ public class LfeSearchManagerImpl implements LfeSearchManager, CloseSearchTask.C
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
};
|
||||
myToggleRegularExpression = new LargeFileToggleAction(this, EditorBundle.message("large.file.editor.regex.action.mnemonic.text")) {
|
||||
@@ -536,7 +536,7 @@ public class LfeSearchManagerImpl implements LfeSearchManager, CloseSearchTask.C
|
||||
}
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
};
|
||||
myStatusTextAction = new LargeFileStatusTextAction(this);
|
||||
|
||||
@@ -25,7 +25,7 @@ class LibraryIndexableEntityProvider implements IndexableEntityProvider<LibraryE
|
||||
|
||||
@Override
|
||||
public @NotNull Collection<DependencyOnParent<? extends WorkspaceEntity>> getDependencies() {
|
||||
return Collections.emptyList();
|
||||
return IndexableEntityProvider.super.getDependencies();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -217,7 +217,7 @@ public class DirectoryHistoryDialog extends HistoryDialog<DirectoryHistoryDialog
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -57,7 +57,7 @@ public interface OccurenceNavigator extends ActionUpdateThreadAware {
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return OccurenceNavigator.super.getActionUpdateThread();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@ final class ChangeLAFAnimator {
|
||||
JComponent imageLayer = new JComponent() {
|
||||
@Override
|
||||
public void updateUI() {
|
||||
super.updateUI();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -22,7 +22,7 @@ public class OpenModuleSettingsAction extends EditSourceAction {
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
protected static boolean isModuleInProjectViewPopup(@NotNull AnActionEvent e) {
|
||||
|
||||
@@ -133,7 +133,7 @@ public final class EventLogToolWindowFactory implements ToolWindowFactory, DumbA
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ public final class FileNavigatorImpl implements FileNavigator {
|
||||
|
||||
@Override
|
||||
public boolean canNavigate(@NotNull OpenFileDescriptor descriptor) {
|
||||
return descriptor.getFile().isValid();
|
||||
return FileNavigator.super.canNavigate(descriptor);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -122,7 +122,7 @@ public abstract class FileSetTestCase extends TestSuite {
|
||||
|
||||
@Override
|
||||
public int countTestCases() {
|
||||
return 1;
|
||||
return super.countTestCases();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -165,7 +165,7 @@ public final class UniqueNameBuilder<T> {
|
||||
|
||||
@Override
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("remove");
|
||||
Iterator.super.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ public interface PeekableIterator<T> extends Iterator<T> {
|
||||
|
||||
@Override
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("remove");
|
||||
PeekableIterator.super.remove();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,6 +37,6 @@ public class RefreshFileHistoryAction extends RefreshAction implements DumbAware
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ public class RefreshLogAction extends RefreshAction {
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
private static Attachment @NotNull [] collectDiagnosticInformation(@Nullable Project project, @NotNull VcsLogManager logManager) {
|
||||
|
||||
@@ -56,7 +56,7 @@ public class ToggleLineBreakpointAction extends XDebuggerActionBase implements D
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
private static boolean hasLineBreakpoint(@NotNull AnActionEvent e) {
|
||||
|
||||
@@ -29,7 +29,7 @@ class EvaluateInConsoleFromTreeAction extends XAddToWatchesTreeAction {
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
@Nullable
|
||||
private static ConsoleExecuteAction getConsoleExecuteAction(@NotNull AnActionEvent e) {
|
||||
|
||||
@@ -127,7 +127,7 @@ public abstract class AntDomElement implements DomElement {
|
||||
|
||||
@Override
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("remove");
|
||||
Iterator.super.remove();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public class NewActionAction extends CreateElementActionBase implements Descript
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -72,6 +72,6 @@ public class RegisterActionFix extends AbstractRegisterFix {
|
||||
|
||||
@Override
|
||||
public @NotNull IntentionPreviewInfo generatePreview(@NotNull Project project, @NotNull ProblemDescriptor previewDescriptor) {
|
||||
return IntentionPreviewInfo.EMPTY;
|
||||
return super.generatePreview(project, previewDescriptor);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,6 @@ public abstract class UseDPIAwareEmptyBorderInspectionTestBase extends AbstractU
|
||||
|
||||
@Override
|
||||
protected void doTest() {
|
||||
myFixture.testHighlighting(getTestName(false) + '.' + getFileExtension());
|
||||
super.doTest();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public class GradleExecuteTaskAction extends ExternalSystemAction {
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -28,7 +28,7 @@ public class LightNamedElement extends LightElement implements PyElement, PsiNam
|
||||
|
||||
@Override
|
||||
public void accept(@NotNull PsiElementVisitor visitor) {
|
||||
visitor.visitElement(this);
|
||||
super.accept(visitor);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -74,7 +74,7 @@ public class PyImportedModule extends LightElement implements PyTypedElement {
|
||||
|
||||
@Override
|
||||
public void accept(@NotNull PsiElementVisitor visitor) {
|
||||
visitor.visitElement(this);
|
||||
super.accept(visitor);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -278,7 +278,7 @@ final class CommandConsole extends LanguageConsoleImpl implements Consumer<Strin
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -731,6 +731,6 @@ public class PythonConsoleView extends LanguageConsoleImpl implements Observable
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
}
|
||||
@@ -1225,6 +1225,7 @@ public class PyDebugProcess extends XDebugProcess implements IPyDebugProcess, Pr
|
||||
|
||||
@Override
|
||||
public void startNotified(@NotNull ProcessEvent event) {
|
||||
ProcessListener.super.startNotified(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1234,6 +1235,7 @@ public class PyDebugProcess extends XDebugProcess implements IPyDebugProcess, Pr
|
||||
|
||||
@Override
|
||||
public void onTextAvailable(@NotNull ProcessEvent event, @NotNull Key outputType) {
|
||||
ProcessListener.super.onTextAvailable(event, outputType);
|
||||
}
|
||||
|
||||
public PyStackFrame createStackFrame(PyStackFrameInfo frameInfo) {
|
||||
|
||||
@@ -51,7 +51,7 @@ public class CreateSetupPyAction extends CreateFromTemplateAction {
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.BGT;
|
||||
return super.getActionUpdateThread();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user