[ 
https://issues.apache.org/jira/browse/MATH-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Luc Maisonobe closed MATH-401.
------------------------------


Closing issue as it was included in version 2.2, which has been released

> Policy concerning "null"
> ------------------------
>
>                 Key: MATH-401
>                 URL: https://issues.apache.org/jira/browse/MATH-401
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Trivial
>             Fix For: 2.2
>
>
> Following the discussion on the "dev" ML, it appears that it would be fine to 
> not check for {{null}} references within CM. The JVM will do it anyway so 
> that it is redundant and not necessary most of the time (i.e. when usage is 
> valid). When it happens, the problem is obvious enough that the standard 
> {{NullPointerException}} fully describes it, without the need for additional 
> specific and localized detailed messages.
> Hence we could remove all explicit checks for {{null}}. Or when early failure 
> is preferred, make the check and throw {{NullPointerException}} (without a 
> message argument).
> Since failed checks are currently reported with an 
> {{IllegalArgumentException}}, the change is not backward-compatible.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to