From 6ad99645dcc549c8b6c8d13c885e8d69534e1993 Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 25 Dec 2019 18:22:29 +0000 Subject: [PATCH] Replace for loop with enhanced for --- .../java/dev/openrs2/deob/transform/DummyArgTransformer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deob/src/main/java/dev/openrs2/deob/transform/DummyArgTransformer.java b/deob/src/main/java/dev/openrs2/deob/transform/DummyArgTransformer.java index 951f4b7791..f4b51af4d3 100644 --- a/deob/src/main/java/dev/openrs2/deob/transform/DummyArgTransformer.java +++ b/deob/src/main/java/dev/openrs2/deob/transform/DummyArgTransformer.java @@ -246,9 +246,7 @@ public final class DummyArgTransformer extends Transformer { var stores = new boolean[method.maxLocals]; - for (var it = method.instructions.iterator(); it.hasNext(); ) { - var insn = it.next(); - + for (AbstractInsnNode insn : method.instructions) { var opcode = insn.getOpcode(); if (opcode != Opcodes.ISTORE) { continue;