fix Bug TDI-24223: Duplicate methods EREPLACE and CHANGE in system routine "StringHandling"

https://jira.talendforge.org/browse/TDI-24223

git-svn-id: http://talendforge.org/svn/tos/trunk@95870 f6f1c999-d317-4740-80b0-e6d1abc6f99e
This commit is contained in:
jjzhou
2012-12-24 10:26:02 +00:00
parent 90c7441185
commit b4c2a28e9d

View File

@@ -168,10 +168,7 @@ public class StringHandling {
* {example} EREPLACE("hello world!","world","guy") # hello world
*/
public static String EREPLACE(String oldStr, String newStr, String replacement) {
if (oldStr == null || newStr == null || replacement == null)
return oldStr;
else
return oldStr.replaceAll(newStr, replacement);
return CHANGE(oldStr, newStr, replacement);
}
/**