You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Stefan Huehner (JIRA)" <ji...@apache.org> on 2007/03/03 16:24:50 UTC

[jira] Updated: (OFBIZ-537) Use i.e. Integer.toString() instead of new Integer().toString

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

Stefan Huehner updated OFBIZ-537:
---------------------------------

    Attachment: ofbiz_toString_Long2.diff

Hi,

this patch converts PaymentGatewayServices. As all calls in this file where the same type i extracted this functionality into a little helper method in UtilDateTime.

This patch is the last and completes this issue.

Stefan

> Use i.e. Integer.toString(<intvalue>) instead of new Integer(<intvalue>).toString
> ---------------------------------------------------------------------------------
>
>                 Key: OFBIZ-537
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-537
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>    Affects Versions: SVN trunk
>            Reporter: Stefan Huehner
>         Assigned To: Jacopo Cappellato
>            Priority: Minor
>         Attachments: ofbiz_toString_Double1.diff, ofbiz_toString_Integer1.diff, ofbiz_toString_Long1.diff, ofbiz_toString_Long2.diff
>
>
> Hi,
> the attached patches replace i.e new Integer(<value>).toString with the Integer.toString(<value>) method. The advantage of the later form is the no Integer object is created and is unsed to be garbage collected at the same moment.
> The attacehd patches are split by type:
> - Integer
> - Double
> ...

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