From bfedfdd9cce869af5bb755481e8503ca60a3f6a6 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Thu, 14 May 2020 21:40:04 +0200 Subject: [PATCH] local inspections: fix logging GitOrigin-RevId: 505dce9b2cfe975b731a2a58866e08e4ab64ddd5 --- .../intellij/codeInsight/daemon/impl/LocalInspectionsPass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java index edbc1aad14cd..600cda159442 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java @@ -501,7 +501,7 @@ public class LocalInspectionsPass extends ProgressableTextEditorHighlightingPass if (descriptor instanceof ProblemDescriptorWithReporterName) { String reportingToolName = ((ProblemDescriptorWithReporterName)descriptor).getReportingToolName(); final InspectionToolWrapper reportingTool = myProfileWrapper.getInspectionTool(reportingToolName, element); - assert reportingTool instanceof LocalInspectionToolWrapper; + LOG.assertTrue(reportingTool instanceof LocalInspectionToolWrapper, reportingToolName); toolWrapper = (LocalInspectionToolWrapper)reportingTool; severity = myProfileWrapper.getErrorLevel(HighlightDisplayKey.find(reportingToolName), file).getSeverity(); }