From 738f446ff49147f007f22e06beabba9c5968fa87 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 2 May 2019 11:40:28 +0200 Subject: [PATCH] Cleanup (deprecated class; formatting) GitOrigin-RevId: 1d1c584e4ae8001fb5f14612194289ff8c485f85 --- .../com/intellij/compiler/CompilerManagerImpl.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/java/compiler/impl/src/com/intellij/compiler/CompilerManagerImpl.java b/java/compiler/impl/src/com/intellij/compiler/CompilerManagerImpl.java index 14fb940015c4..73d48d6cb732 100644 --- a/java/compiler/impl/src/com/intellij/compiler/CompilerManagerImpl.java +++ b/java/compiler/impl/src/com/intellij/compiler/CompilerManagerImpl.java @@ -84,7 +84,9 @@ public class CompilerManagerImpl extends CompilerManager { } for (InspectionValidator validator : InspectionValidator.EP_NAME.getExtensionList(project)) { - addCompiler(new InspectionValidatorWrapper(this, InspectionManager.getInstance(project), InspectionProjectProfileManager.getInstance(project), PsiDocumentManager.getInstance(project), PsiManager.getInstance(project), validator)); + addCompiler( + new InspectionValidatorWrapper(this, InspectionManager.getInstance(project), InspectionProjectProfileManager.getInstance(project), + PsiDocumentManager.getInstance(project), PsiManager.getInstance(project), validator)); } addCompilableFileType(StdFileTypes.JAVA); @@ -156,15 +158,10 @@ public class CompilerManagerImpl extends CompilerManager { @Override @NotNull public T[] getCompilers(@NotNull Class compilerClass) { - return getCompilers(compilerClass, CompilerFilter.ALL); - } - - @NotNull - private T[] getCompilers(@NotNull Class compilerClass, CompilerFilter filter) { final List compilers = new ArrayList<>(myCompilers.size()); for (final Compiler item : myCompilers) { T concreteCompiler = ObjectUtils.tryCast(item, compilerClass); - if (concreteCompiler != null && filter.acceptCompiler(concreteCompiler)) { + if (concreteCompiler != null) { compilers.add(concreteCompiler); } }