[xwiki/xwiki-platform] 366ebc: [Misc] Replace replaceAll() with replace() in Defa...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 366ebc345a611b599b1506b1a18acb435b299cf3 https://github.com/xwiki/xwiki-platform/commit/366ebc345a611b599b1506b1a18ac... Author: Vincent Massol <[email protected]> Date: 2026-06-26 (Fri, 26 Jun 2026) Changed paths: M xwiki-platform-core/xwiki-platform-display/xwiki-platform-display-html/src/main/java/org/xwiki/rendering/display/html/internal/DefaultTemplateHTMLDisplayer.java Log Message: ----------- [Misc] Replace replaceAll() with replace() in DefaultTemplateHTMLDisplayer The four replaceAll() calls in cleanPath() all used literal first arguments with no regex metacharacters, so the non-regex String.replace(CharSequence, CharSequence) is exactly equivalent while avoiding a Pattern compilation on every call. Fixes the SonarCloud java:S5361 issues reported on that line. To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications