Code analyze: only use String.replace() instead of String.replaceAll().

This commit is contained in:
Dennis Guse
2026-07-21 07:30:19 +02:00
parent 925a253bbb
commit 1821f47cf1
@@ -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[>") + "]]>";
}
/**