aload 0 should be kept

This commit is contained in:
金戟 2021-02-16 18:27:27 +08:00
parent 02d7fb6e91
commit 01bd676df7

View File

@ -66,7 +66,7 @@ public class MockClassHandler extends BaseClassWithContextHandler {
for (AbstractInsnNode in : mn.instructions) {
if (in instanceof IincInsnNode) {
((IincInsnNode)in).var++;
} else if (in instanceof VarInsnNode) {
} else if (in instanceof VarInsnNode && ((VarInsnNode)in).var > 0) {
((VarInsnNode)in).var++;
}
}