Skip to content

Commit

Permalink
do not use forEach of jdk1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCai authored Oct 16, 2017
1 parent 9a2224a commit 1ca2da5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -99,4 +99,4 @@ object InspectionResults {
"${map[RulePriority.Critical.title]?.count ?: 0} Criticals," +
"${map[RulePriority.Major.title]?.count ?: 0} Majors"
}
}
}

0 comments on commit 1ca2da5

Please sign in to comment.