Files
2017-12-16 17:14:47 -08:00

30 lines
693 B
Java

public class TestCaseFor {
@DARanges({
@DARange(varName="o", bytecodeStart=10, bytecodeLength=11),
@DARange(varName="o", bytecodeStart=24, bytecodeLength=1)
})
void m1(String[] args) {
Object o;
for (int i = 0; i < 5; i++) {
o = "";
o.hashCode();
}
o = "";
}
@DARanges({
@DARange(varName="o", bytecodeStart=10, bytecodeLength=11),
@DARange(varName="o", bytecodeStart=24, bytecodeLength=1)
})
void m2(String[] args) {
Object o;
for (int i = 0; i < 5; i++) {
o = "";
o.hashCode();
continue;
}
o = "";
}
}