In Android, how can I prevent user to insert null values to my method. I don't want to fire an exception at run time. I want it to appear as compilation error
For example, if I have the following method
public void myMethod(Object o);
I don't want the user to be able to call it using
myMethod(null)
thanks in advance
why don't just do: