User Guide

226 Creating Custom Validators
}
return results;
}
}
}
Notice that you remove the return statement from the body of the if statements so that the
method contains only a single
return statemen. This modification allows you to detect three
different validation errors at once.