commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject Re: [Math - 403] Never propagate a "NullPointerException" resulting from bad usage of the API
Date Fri, 04 Mar 2011 19:33:41 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.

Cheers,
- Ole

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


Mime
View raw message