Compiler&plugin deprecations cleanup: withIndices -> withIndex or mapIndexed

This commit is contained in:
Ilya Gorbunov
2015-06-25 21:25:59 +03:00
parent f4651f22ca
commit 765733b791
5 changed files with 6 additions and 7 deletions
@@ -30,7 +30,7 @@ public object JetPsiPrecedences {
private val precedence: Map<IElementType, Int>
init {
val builder = HashMap<IElementType, Int>()
for ((i, record) in JetExpressionParsing.Precedence.values().withIndices()) {
for ((i, record) in JetExpressionParsing.Precedence.values().withIndex()) {
for (elementType in record.getOperations().getTypes()) {
builder[elementType] = i
}