mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-13 06:13:07 +02:00
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
|
* @param text the given text
|
||||||
*/
|
*/
|
||||||
public static String formatCData(String text) {
|
public static String formatCData(String text) {
|
||||||
return "<![CDATA[" + text.replaceAll("]]>", "]]]]><![CDATA[>") + "]]>";
|
return "<![CDATA[" + text.replace("]]>", "]]]]><![CDATA[>") + "]]>";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user