When checking for parameter consistency a the top of a function body, what is the best strategy?
This one:
protected void function(Object parameter)
if (parameter == null)
return;
//... do things
}
...or this one:
protected void function(Object parameter)
if (parameter != null) {
//... do things
}
}