mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 09:12:22 +07:00
IJPL-310 mark extensions as obsolete (part 11)
GitOrigin-RevId: ef915fa2bf11f9fbcdf9ebbf80bc553129314335
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4c010ba621
commit
69fc441f6e
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user