You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/02/27 23:33:22 UTC
DO NOT REPLY [Bug 27306] New: -
[lang][patch] Javadoc fixes for CharSetUtils
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27306>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27306
[lang][patch] Javadoc fixes for CharSetUtils
Summary: [lang][patch] Javadoc fixes for CharSetUtils
Product: Commons
Version: Nightly Builds
Platform: Other
OS/Version: Other
Status: NEW
Severity: Minor
Priority: Other
Component: Lang
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: janekdb@yahoo.co.uk
The attached patch fixes the Javadoc for three methods in CharSetUtils.
Incidentally the @deprecated tag for translate(String, String, String) suggests
StringUtils#replaceChars(String, String, String) as a replacement but
StringUtils#replaceChars behaves differently when 'searchChars' is longer than
'replaceChars'. CharUtils#translate will use the last char of the replacement
string whereas StringUtils#replaceChars will delete. Is this difference worth
noting?
* @deprecated Use {@link StringUtils#replaceChars(String, String, String)}.
* Method will be removed in Commons Lang 3.0.
*/
public static String translate(String str, String searchChars, String
replaceChars) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org