If the intention is to have a NullPointerException when null is passed, declare it and throw it specifically (that way you are in control of the exception). I think every undocumented nullpointer exception is a bug.
Mvgr, Martin Luc Maisonobe wrote: > [EMAIL PROTECTED] wrote: > >> + /** >> + * Modify the normal distribution used to compute normal approximations. >> + * The caller is responsible for insuring the normal distribution has >> the >> + * proper parameter settings. >> + * @param value the new distribution >> + * @since 1.2 >> + */ >> + public void setNormal(NormalDistribution value) { >> + normal = value; >> } > > Should we check for null parameters here and throw a NPE ourselves or > simply allow null parameters and let the JVM throw the NPE when the > distribution is used ? > > I am fine with the current choice of letting the JVM handle this by > itself, I only wondered what others think about this. > > Luc > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]