IJPL-310 mark extensions as obsolete (part 11)

GitOrigin-RevId: ef915fa2bf11f9fbcdf9ebbf80bc553129314335
This commit is contained in:
Vladimir Krivosheev
2023-10-26 12:41:36 +02:00
committed by intellij-monorepo-bot
parent 4c010ba621
commit 69fc441f6e
61 changed files with 124 additions and 185 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInspection;
import com.intellij.codeInspection.ex.PlainTextFormatter;
@@ -104,14 +104,14 @@ public abstract class AbstractInspectionCmdlineOptions implements InspectionTool
final String outputFormat = getOutputFormatProperty();
if (outputFormat != null) {
StringBuilder builder = new StringBuilder();
for (InspectionsReportConverter converter : InspectionsReportConverter.EP_NAME.getExtensions()) {
for (InspectionsReportConverter converter : InspectionsReportConverter.EP_NAME.getExtensionList()) {
final String converterFormat = converter.getFormatName();
if (outputFormat.equals(converterFormat)) {
builder = null;
break;
}
else {
if (builder.length() != 0) {
if (!builder.isEmpty()) {
builder.append(", ");
}
builder.append(converterFormat);

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInspection;
import com.intellij.codeInspection.ex.Tools;
@@ -23,7 +23,7 @@ public interface InspectResultsConsumer {
static void runConsumers(@NotNull Map<String, ? extends Tools> tools,
@NotNull List<? extends File> inspectionsResults,
@NotNull Project project) {
for (InspectResultsConsumer extension : EP_NAME.getExtensions()) {
for (InspectResultsConsumer extension : EP_NAME.getExtensionList()) {
extension.consume(tools, inspectionsResults, project);
}
}

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.codeInspection;
import com.intellij.openapi.extensions.ExtensionPointName;
@@ -18,7 +18,7 @@ public interface InspectionApplicationFactory {
@NotNull
static InspectionApplicationBase getApplication(@NotNull String id, @NotNull List<String> args) throws InspectionApplicationException {
for (InspectionApplicationFactory extension : EP_NAME.getExtensions()) {
for (InspectionApplicationFactory extension : EP_NAME.getExtensionList()) {
if (extension.id().equals(id)) {
return extension.getApplication(args);
}