mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 04:10:13 +02:00
Breaking out of loop after test condition verification.
This commit is contained in:
parent
01cfa02bfe
commit
6d48e5db17
@ -272,6 +272,7 @@ public class JumboStringConversionTest {
|
|||||||
for (Instruction instr: writeUtil.getInstructions()) {
|
for (Instruction instr: writeUtil.getInstructions()) {
|
||||||
if (codeOffset == 21) {
|
if (codeOffset == 21) {
|
||||||
Assert.assertEquals("array payload was not aligned properly", instr.getOpcode(), Opcode.NOP);
|
Assert.assertEquals("array payload was not aligned properly", instr.getOpcode(), Opcode.NOP);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
codeOffset += instr.getCodeUnits();
|
codeOffset += instr.getCodeUnits();
|
||||||
}
|
}
|
||||||
@ -289,6 +290,7 @@ public class JumboStringConversionTest {
|
|||||||
for (Instruction instr: writeUtil.getInstructions()) {
|
for (Instruction instr: writeUtil.getInstructions()) {
|
||||||
if (codeOffset == 7) {
|
if (codeOffset == 7) {
|
||||||
Assert.assertEquals("packed switch payload was not aligned properly", instr.getOpcode(), Opcode.NOP);
|
Assert.assertEquals("packed switch payload was not aligned properly", instr.getOpcode(), Opcode.NOP);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
codeOffset += instr.getCodeUnits();
|
codeOffset += instr.getCodeUnits();
|
||||||
}
|
}
|
||||||
@ -307,6 +309,7 @@ public class JumboStringConversionTest {
|
|||||||
for (Instruction instr: writeUtil.getInstructions()) {
|
for (Instruction instr: writeUtil.getInstructions()) {
|
||||||
if (codeOffset == 15) {
|
if (codeOffset == 15) {
|
||||||
Assert.assertEquals("packed switch payload was not aligned properly", instr.getOpcode(), Opcode.NOP);
|
Assert.assertEquals("packed switch payload was not aligned properly", instr.getOpcode(), Opcode.NOP);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
codeOffset += instr.getCodeUnits();
|
codeOffset += instr.getCodeUnits();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user