On Thu, Nov 19, 2009 at 9:24 AM, Paul Benedict <pbened...@apache.org> wrote: > On Thu, Nov 19, 2009 at 1:39 AM, Henri Yandell <flame...@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-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org