// If we are currently on a line marked as a return (such as a 'return now' line),
// then we must perform step over TWICE, to get around the odd way in which TOD
// instruments the bytecode.
if(this.behavior != null && this.lineNumber >= 0) {
ClassInfo classInfo = this.getTODSession().getClassInformationProvider().getClassInfo(behavior.getDeclaringType());
SourceInfo sourceInfo = classInfo.getSourceInfo();
if (sourceInfo.isActionEnd(this.lineNumber) || sourceInfo.isReturn(this.lineNumber)) {
// Step over twice.
if (this.behavior.getName().equals("Main") || this.behavior.getName().equals("main")) {
return false;
}
this.getTODSession().getJVMHandler().stepOver(this.thread, 2);