commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: [lang] NumberUtils null handling
Date Sun, 20 Jul 2003 00:38:14 GMT


On Sat, 19 Jul 2003, Phil Steitz wrote:

> I have been going through NumberUtils code and tests to make sure that
> handling of nulls is documented (and tested) correctly. I notice that
> createNumber returns null for null (need to add a javadoc comment for
> this); whereas createFloat, et al will throw NPEs on null.  Shouldn't
> these behave the same?  In any case, the behavior should be documented.
>
> Should I submit a patch to
>
> 1. Make createFloat et al return null for null as createNumber does

+1 to the sub-package as Stephen said.

> 2. Make no changes to NumberUtils methods, just add javadoc and tests
> documenting current behavior.
>
> 3. Go back to sleep...;-)
>
>
> Phil
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>


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


Mime
View raw message