Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Operating System: other
Platform: Other
-
27306
Description
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) {