commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject Re: [Math - 403] Never propagate a "NullPointerException" resulting from bad usage of the API
Date Fri, 04 Mar 2011 23:32:51 GMT
Hi.

> Just want to throw another idea into the mix.  How about stripping all the validation
argument validation lines and putting in separate validator classes.  Clients would call the
validator on the arguments for the class before passing the arguments to the class's method.
 It makes the core classes more focused and efficient and enables clients to wrap method invocations
with aspects that apply the validation routine.

Could you post a little code example?

Regards,
Gilles

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


Mime
View raw message