[JVM] Drop toArray call where iterator can be used
This commit is contained in:
+1
-3
@@ -226,10 +226,8 @@ class UninitializedStoresProcessor(private val methodNode: MethodNode) {
|
||||
get() = "${instructions.indexOf(this)}: $insnText"
|
||||
|
||||
fun analyzePopInstructions(frames: Array<Frame<BasicValue>?>) {
|
||||
val insns = instructions.toArray()
|
||||
for (i in frames.indices) {
|
||||
for ((i, insn) in instructions.withIndex()) {
|
||||
val frame = frames[i] ?: continue
|
||||
val insn = insns[i]
|
||||
when (insn.opcode) {
|
||||
Opcodes.POP -> analyzePop(insn, frame)
|
||||
Opcodes.POP2 -> analyzePop2(insn, frame)
|
||||
|
||||
Reference in New Issue
Block a user