Counter loop in Java is transformed to less effective loop in Kotlin #KT-19337 Fixed

This commit is contained in:
Toshiaki Kameyama
2017-08-21 18:44:51 +09:00
committed by Dmitry Jemerov
parent eefc6ebcc9
commit a6c2135851
8 changed files with 19 additions and 12 deletions
@@ -30,7 +30,7 @@ class A {
fun getSelected(): ArrayList<UsageInfo> {
val result = ArrayList<UsageInfo>()
for (i in 0..myChecked.length - 1) {
for (i in 0 until myChecked.length) {
if (myChecked[i]) {
result.add(myOverridingMethods.get(i))
}