opensubscriber
   Find in this group all groups
 
Unknown more information…

i : issues@commons.apache.org 7 September 2009 • 12:52PM -0400

[jira] Commented: (LANG-420) Rename ObjectUtils.toString() to asString().
by Henri Yandell (JIRA)

REPLY TO AUTHOR
 
REPLY TO GROUP





    [ https://issues.apache.org/jira/browse/LANG-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752009#action_12752009 ]

Henri Yandell commented on LANG-420:
------------------------------------

Options seem to be:

a) Users use the full name.
b) Come up with a generic way to rename clashes. Having an _equals(...), _hashCode(...) etc.
c) Fix just this one to asString.

My vote is on a) as I don't see this as a critical enough feature to warrant all that overloading.

> Rename ObjectUtils.toString() to asString().
> --------------------------------------------
>
>                 Key: LANG-420
>                 URL: https://issues.apache.org/jira/browse/LANG-420
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.3
>            Reporter: Stephen Kestle
>            Priority: Trivial
>             Fix For: 3.0
>
>
> With Java 5 static method inlining, methods do not require class qualifying *unless* the class already has the method.
> For this reason, ObjectUtlis.toString() cannot be inlined to toString(), as Object has a toString() method.  
> It would be nice for it to have a name that could be statically imported, such as asString.  This would follow the naming convention of Arrays.asList()
> Note that this DOES NOT need a java 5 version of lang.

--
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.