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 5972121..c50df7a 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 +}