Skip to content

Commit 1ca2da5

Browse files
authored
do not use forEach of jdk1.8
1 parent 9a2224a commit 1ca2da5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • eclipse-plugin/com.alibaba.smartfox.eclipse.plugin/src/main/kotlin/com/alibaba/smartfox/eclipse/ui

eclipse-plugin/com.alibaba.smartfox.eclipse.plugin/src/main/kotlin/com/alibaba/smartfox/eclipse/ui/InspectionResults.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ object InspectionResults {
4141

4242

4343
fun clear() {
44-
fileViolations.forEach { t, u ->
45-
MarkerUtil.removeAllMarkers(t)
44+
fileViolations.forEach {
45+
MarkerUtil.removeAllMarkers(it.key)
4646
}
4747
fileViolations.clear()
4848
// update contentDescription
@@ -99,4 +99,4 @@ object InspectionResults {
9999
"${map[RulePriority.Critical.title]?.count ?: 0} Criticals," +
100100
"${map[RulePriority.Major.title]?.count ?: 0} Majors"
101101
}
102-
}
102+
}

0 commit comments

Comments
 (0)