Use i.e. Integer.toString(<intvalue>) instead of new Integer(<intvalue>).toString
--------------------------------------------------------------------------------- Key: OFBIZ-537 URL: http://issues.apache.org/jira/browse/OFBIZ-537 Project: OFBiz (The Open for Business Project) Issue Type: Improvement Affects Versions: SVN trunk Reporter: Stefan Huehner Priority: Minor Attachments: ofbiz_toString_Double1.diff, ofbiz_toString_Integer1.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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ http://issues.apache.org/jira/browse/OFBIZ-537?page=all ]
Stefan Huehner updated OFBIZ-537: --------------------------------- Attachment: ofbiz_toString_Double1.diff The "Double" portion of this issue > Use i.e. Integer.toString(<intvalue>) instead of new Integer(<intvalue>).toString > --------------------------------------------------------------------------------- > > Key: OFBIZ-537 > URL: http://issues.apache.org/jira/browse/OFBIZ-537 > Project: OFBiz (The Open for Business Project) > Issue Type: Improvement > Affects Versions: SVN trunk > Reporter: Stefan Huehner > Priority: Minor > Attachments: ofbiz_toString_Double1.diff, ofbiz_toString_Integer1.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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-537?page=all ]
Stefan Huehner updated OFBIZ-537: --------------------------------- Attachment: ofbiz_toString_Integer1.diff The "Integer" portion > Use i.e. Integer.toString(<intvalue>) instead of new Integer(<intvalue>).toString > --------------------------------------------------------------------------------- > > Key: OFBIZ-537 > URL: http://issues.apache.org/jira/browse/OFBIZ-537 > Project: OFBiz (The Open for Business Project) > Issue Type: Improvement > Affects Versions: SVN trunk > Reporter: Stefan Huehner > Priority: Minor > Attachments: ofbiz_toString_Double1.diff, ofbiz_toString_Integer1.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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-537?page=comments#action_12456936 ]
Stefan Huehner commented on OFBIZ-537: -------------------------------------- Please leave this case open, as more patches on this topic will come. > Use i.e. Integer.toString(<intvalue>) instead of new Integer(<intvalue>).toString > --------------------------------------------------------------------------------- > > Key: OFBIZ-537 > URL: http://issues.apache.org/jira/browse/OFBIZ-537 > Project: OFBiz (The Open for Business Project) > Issue Type: Improvement > Affects Versions: SVN trunk > Reporter: Stefan Huehner > Priority: Minor > Attachments: ofbiz_toString_Double1.diff, ofbiz_toString_Integer1.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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-537?page=all ]
Jacopo Cappellato reassigned OFBIZ-537: --------------------------------------- Assignee: Jacopo Cappellato > Use i.e. Integer.toString(<intvalue>) instead of new Integer(<intvalue>).toString > --------------------------------------------------------------------------------- > > Key: OFBIZ-537 > URL: http://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 > > > 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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-537?page=comments#action_12457063 ]
Jacopo Cappellato commented on OFBIZ-537: ----------------------------------------- Thanks Stefan, the patches: ofbiz_toString_Double1.diff ofbiz_toString_Integer1.diff are in svn with rev. 484971 > Use i.e. Integer.toString(<intvalue>) instead of new Integer(<intvalue>).toString > --------------------------------------------------------------------------------- > > Key: OFBIZ-537 > URL: http://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 > > > 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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |