Branch: refs/heads/fix/sonar-xwiki-double-checked-locking Home: https://github.com/xwiki/xwiki-platform Commit: 7432f66bc9aefed9df0ef7deed9ec8c1836cbc46 https://github.com/xwiki/xwiki-platform/commit/7432f66bc9aefed9df0ef7deed9ec... Author: Claude <[email protected]> Date: 2026-05-13 (Wed, 13 May 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java Log Message: ----------- [SONAR] Fix double-checked locking by making urlFactoryService volatile Fixes SonarCloud blocker issue S2168 in XWiki.java. The getURLFactoryService() method uses double-checked locking (check-then-lock-then-check) which is only safe in Java when the guarded field is declared volatile. Without volatile, the JVM may reorder writes and a second thread can observe a partially-initialized object. https://sonarcloud.io/project/issues?id=org.xwiki.platform:xwiki-platform&is... To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications