opensubscriber
   Find in this group all groups
 
Unknown more information…

i : issues@commons.apache.org 7 September 2009 • 1:28PM -0400

[jira] Closed: (LANG-527) NumberUtils toXXX should document default null
by Paul Benedict (JIRA)

REPLY TO AUTHOR
 
REPLY TO GROUP





     [ https://issues.apache.org/jira/browse/LANG-527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Benedict closed LANG-527.
------------------------------

    Resolution: Invalid

My fault. The default is not an object, so it's impossible to get null back. A shame.

> NumberUtils toXXX should document default null
> ----------------------------------------------
>
>                 Key: LANG-527
>                 URL: https://issues.apache.org/jira/browse/LANG-527
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.4
>            Reporter: Paul Benedict
>            Priority: Minor
>
> The API docs for the toXXX methods that accept a default do not explicitly spell out that null may be a default value. Only null is shown for the first parameter, but if you want to return nothing if the first is nothing or malformed, the second can be null.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.