commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Closed: (LANG-330) Add StringBufferUtils or overload StringUtils methods
Date Mon, 04 Jan 2010 09:08:54 GMT

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

Henri Yandell closed LANG-330.
------------------------------

    Resolution: Duplicate

Duplicate of the later LANG-542 (in terms of adding Appendable as an API element). I don't
see a StringBufferUtils being likely, especially with StringBuilderUtils in existence.

Possibly we could have an AppendableUtils or StringUtils overload for Appendable options that
the String option would sit on top of (and hide the IOException).

> Add StringBufferUtils or overload StringUtils methods
> -----------------------------------------------------
>
>                 Key: LANG-330
>                 URL: https://issues.apache.org/jira/browse/LANG-330
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: Jörg Gottschling
>             Fix For: 3.0
>
>
> There's especially one group of methods you should overload with StringBuffer (or Appendable
in a special JDK5 Class?):
> StringUtils.join
> It should take a StringBuffer (/Appendable) as first Argument to which the Strings will
be added.
> Usage Example:
> StringBuffer sql = new StringBuffer("SELECT * FROM foo WHERE bar IN (");
> StringUtils.join(sql, bars, ", ");
> sql.append(") AND bar NOT IN (");
> StringUtils.join(sql, noBars, ", ");
> sql.append(");");

-- 
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