commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <flame...@gmail.com>
Subject Re: Commons Lang 3: Validate
Date Fri, 20 Nov 2009 07:25:06 GMT
On Thu, Nov 19, 2009 at 9:24 AM, Paul Benedict <pbenedict@apache.org> wrote:
> On Thu, Nov 19, 2009 at 1:39 AM, Henri Yandell <flamefew@gmail.com> wrote:
>
>> Your argument being that the JDK and others do NPE when null? i.e. NPE
>> = IAE(null)?
>
> Yes. Some things to note:
> * The JDK does this as their pattern
> * JDK 7 definitely encodes this patter in their new Object.notNull() method.
> * Google Collections -- being a JDK wannabe addition -- does this
> * Josuha Bloch's "Effective Java" (two editions) has codified this
> expectation into the minds of developers.

+1 to NPE.

Hen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message