Counter loop in Java is transformed to less effective loop in Kotlin #KT-19337 Fixed
This commit is contained in:
committed by
Dmitry Jemerov
parent
eefc6ebcc9
commit
a6c2135851
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user