mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-25 11:51:15 +08:00
aload 0 should be kept
This commit is contained in:
parent
02d7fb6e91
commit
01bd676df7
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user