commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Colebourne <scolebou...@btopenworld.com>
Subject [lang] Checking for NULL
Date Tue, 17 Nov 2009 09:33:56 GMT
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 also check for ObjectUtils.NULL?

IMO, the NULL constant was intended for collections where null isn't 
valid. So I don't think I'd add broader checks.

Stephen


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


Mime
View raw message