do not use forEach of jdk1.8

This commit is contained in:
SeanCai
2017-10-16 07:59:31 -05:00
committed by GitHub
parent 9a2224a23b
commit 1ca2da502c

View File

@@ -41,8 +41,8 @@ object InspectionResults {
fun clear() { fun clear() {
fileViolations.forEach { t, u -> fileViolations.forEach {
MarkerUtil.removeAllMarkers(t) MarkerUtil.removeAllMarkers(it.key)
} }
fileViolations.clear() fileViolations.clear()
// update contentDescription // update contentDescription
@@ -99,4 +99,4 @@ object InspectionResults {
"${map[RulePriority.Critical.title]?.count ?: 0} Criticals," + "${map[RulePriority.Critical.title]?.count ?: 0} Criticals," +
"${map[RulePriority.Major.title]?.count ?: 0} Majors" "${map[RulePriority.Major.title]?.count ?: 0} Majors"
} }
} }