Re: [lang] Checking for NULL

2009-11-22 Thread Stephen Colebourne
Henri Yandell wrote: Agreed. I'd never read the javadoc which suggests collections usage and had assumed we had grander schemes. Is ObjectUtils.NULL worth keeping? I think ObjectUtils.NULL is worth keeping, but there should be two methods that do know about it: public T wrapNull(T obj) {

[lang] Checking for NULL

2009-11-17 Thread Stephen Colebourne
The new ObjectUtils.firstNonNull() method checked for both null and the ObjectUtils.NULL constant object. Since that was the only method with that behaviour I removed the check for the NULL object. The question is broader than that... do we want all null checks in ObjectUtils or [lang] to

Re: [lang] Checking for NULL

2009-11-17 Thread Paul Benedict
The use of ObjectUtils.NULL seems esoteric. If you didn't write this email, I wouldn't have known of its support. Paul On Tue, Nov 17, 2009 at 3:33 AM, Stephen Colebourne scolebou...@btopenworld.com wrote: The new ObjectUtils.firstNonNull() method checked for both null and the ObjectUtils.NULL

Re: [lang] Checking for NULL

2009-11-17 Thread Henri Yandell
Agreed. I'd never read the javadoc which suggests collections usage and had assumed we had grander schemes. Is ObjectUtils.NULL worth keeping? Hen On Tue, Nov 17, 2009 at 3:01 AM, Paul Benedict pbened...@apache.org wrote: The use of ObjectUtils.NULL seems esoteric. If you didn't write this