commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LANG-452) ObjectUtils.toString() should return constant empty String from StringUtils:EMPTY instead a new Empty String
Date Mon, 28 Jul 2008 17:11:31 GMT

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

James Carman resolved LANG-452.
-------------------------------

    Resolution: Invalid
      Assignee: James Carman

> ObjectUtils.toString() should return constant empty String from StringUtils:EMPTY instead
a new Empty String
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: LANG-452
>                 URL: https://issues.apache.org/jira/browse/LANG-452
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.4
>            Reporter: Conny Krey├čel
>            Assignee: James Carman
>
> In commons-lang 2.4 the method
>  public static String toString(Object obj) {
>         return obj == null ? "" : obj.toString();
>  }
> every call a new emptyb String. 
> Is it possible to change it to 
> public static String toString(Object obj) {
>         return obj == null ? StringUtils.EMPTY : obj.toString();
>     }
> ???
> This change saves IMHO resources?!

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


Mime
View raw message