From 6fa40c823d503bee549f56591cb28268f3cfb7f6 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 25 May 2017 15:38:09 +0300 Subject: [PATCH] fixed compilation under jdk9 --- .../intellij/codeInspection/ui/InspectionResultsView.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java index e80b2816a54a..82a17268cf66 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java @@ -17,6 +17,7 @@ package com.intellij.codeInspection.ui; import com.intellij.CommonBundle; +import com.intellij.ReviseWhenPortedToJDK; import com.intellij.analysis.AnalysisScope; import com.intellij.analysis.AnalysisUIOptions; import com.intellij.codeHighlighting.HighlightDisplayLevel; @@ -680,8 +681,10 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren return myInspectionProfile; } + @ReviseWhenPortedToJDK("9") void addProblemDescriptors(InspectionToolWrapper wrapper, RefEntity refElement, CommonProblemDescriptor[] descriptors) { - myTreeUpdater.submit(() -> ReadAction.run(() -> { + // redundant cast to fix compilation under jdk9 + myTreeUpdater.submit((Runnable)() -> ReadAction.run(() -> { if (!isDisposed()) { ApplicationManager.getApplication().assertReadAccessAllowed(); synchronized (myTreeStructureUpdateLock) {