commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <flame...@gmail.com>
Subject Re: [lang] ClassUtils.toClass(Object[] array)
Date Wed, 03 Feb 2010 07:09:40 GMT
null -> null makes sense. +1.

On Tue, Feb 2, 2010 at 12:53 PM, Matt Benson <gudnabrsam@gmail.com> wrote:
> Currently it appears this method would throw a NPE if any element of array
> is null, without documenting this fact.  Our options would seem to be:
>
> - document the NPE
> - convert a null object to Object.class
> - convert a null object to a null class
>
> My inclination would be the third option, from the perspective of that the
> expectation would be a subsequent call to one of the
> ClassUtils.isAssignable(Class[]) variants.  Are there dissenting opinions?
>
> -Matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

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


Mime
View raw message