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

Eric Jablow updated HUPA-58:
----------------------------

    Attachment: concatenation-in-loop.patch

Patch to replace String concatenation in loops with StringBuilder.append calls. 
 I suggest using Google Collections' Joiner class instead.

> Strings concatenated in loops
> -----------------------------
>
>                 Key: HUPA-58
>                 URL: https://issues.apache.org/jira/browse/HUPA-58
>             Project: JAMES Hupa
>          Issue Type: Improvement
>            Reporter: Eric Jablow
>            Assignee: Norman Maurer
>            Priority: Minor
>         Attachments: concatenation-in-loop.patch
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> A few Java files have code like
> String ret = "";
> for (String s : ...) {
>   ret += s +" ";
> }
> StringBuilder.append() is faster and does not allocate new objects.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to