forked from upstream-mirrors/OpenTracks
Code analyze: only use String.replace() instead of String.replaceAll().
This commit is contained in:
@@ -191,7 +191,7 @@ public class StringUtils {
|
||||
* @param text the given text
|
||||
*/
|
||||
public static String formatCData(String text) {
|
||||
return "<![CDATA[" + text.replaceAll("]]>", "]]]]><![CDATA[>") + "]]>";
|
||||
return "<![CDATA[" + text.replace("]]>", "]]]]><![CDATA[>") + "]]>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user