The key is to use double nested conditions:
//this will not work "call to 'next' should be done only once and unconditionally"
protected void
chooseLinesPackingSlip(boolean _append)
{
If
(true)
{
this.somethingElse(_append);
return;
}
next
chooseLinesPackingSlip(_append);
}
//this will work
protected void chooseLinesPackingSlip(boolean _append)
{
If (true)
{
if (true)
{
this.somethingElse(_append);
return;
}
}
next chooseLinesPackingSlip(_append);
}