Skip to content

Commit

Permalink
Merge pull request alibaba#70 from SeanCai/master
Browse files Browse the repository at this point in the history
do not use forEach of jdk1.8
  • Loading branch information
SeanCai authored Oct 17, 2017
2 parents dca5cd6 + 1ca2da5 commit fc203e7
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 fc203e7

Please sign in to comment.