From 1ca2da502c6fbb88fd96fbc5cb24576ed7e2a887 Mon Sep 17 00:00:00 2001 From: SeanCai Date: Mon, 16 Oct 2017 07:59:31 -0500 Subject: [PATCH] do not use forEach of jdk1.8 --- .../com/alibaba/smartfox/eclipse/ui/InspectionResults.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclipse-plugin/com.alibaba.smartfox.eclipse.plugin/src/main/kotlin/com/alibaba/smartfox/eclipse/ui/InspectionResults.kt b/eclipse-plugin/com.alibaba.smartfox.eclipse.plugin/src/main/kotlin/com/alibaba/smartfox/eclipse/ui/InspectionResults.kt index 59721211d..c50df7acf 100644 --- a/eclipse-plugin/com.alibaba.smartfox.eclipse.plugin/src/main/kotlin/com/alibaba/smartfox/eclipse/ui/InspectionResults.kt +++ b/eclipse-plugin/com.alibaba.smartfox.eclipse.plugin/src/main/kotlin/com/alibaba/smartfox/eclipse/ui/InspectionResults.kt @@ -41,8 +41,8 @@ object InspectionResults { fun clear() { - fileViolations.forEach { t, u -> - MarkerUtil.removeAllMarkers(t) + fileViolations.forEach { + MarkerUtil.removeAllMarkers(it.key) } fileViolations.clear() // update contentDescription @@ -99,4 +99,4 @@ object InspectionResults { "${map[RulePriority.Critical.title]?.count ?: 0} Criticals," + "${map[RulePriority.Major.title]?.count ?: 0} Majors" } -} \ No newline at end of file +}