commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alin Vasile (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-835) StrBuilder should support StringBuilder as an input parameter
Date Mon, 26 Nov 2012 11:48:58 GMT

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

Alin Vasile updated LANG-835:
-----------------------------

    Attachment: LANG-835.diff

A patch I developed for this issue.
                
> StrBuilder should support StringBuilder as an input parameter
> -------------------------------------------------------------
>
>                 Key: LANG-835
>                 URL: https://issues.apache.org/jira/browse/LANG-835
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.text.*
>         Environment: Although StrBuilder supports CharSequence (and thus StringBuilder),
it does so by converting it to a String temporarily. This is a bit wasteful.
> It would be useful to support StringBuilder directly, as that provides the getChars()
method which does a direct copy of the buffer contents.
> This would involve adding two new methods:
> getChars(StringBuilder)
> getChars(StringBuilder, int, int)
> which can be a direct copy of the StringBuffer methods.
> Sadly there is no accessible interface or super-class that would allow the methods to
share code.
>            Reporter: Sebb
>         Attachments: LANG-835.diff
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message