mirror of
https://github.com/alibaba/p3c.git
synced 2025-10-15 07:32:36 +00:00
do not use forEach of jdk1.8
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user