commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27306] New: - [lang][patch] Javadoc fixes for CharSetUtils
Date Fri, 27 Feb 2004 22:33:22 GMT
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


Mime
View raw message