Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: ddfe6a7deca58804730b440b7b1fd6dad122524e https://github.com/xwiki/xwiki-platform/commit/ddfe6a7deca58804730b440b7b1fd... Author: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Date: 2026-09-15 (Tue, 15 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java Log Message: ----------- [Misc] Fix the SonarQube duplication and javabugs:S2259 issues of XWiki (#6289) * [Misc] Fix the SonarQube duplication and javabugs:S2259 issues of XWiki * Extract the duplicated "Accept-Language" parsing of getDocLanguagePreferenceNew() and getInterfaceLanguagePreference() into a single private getNavigatorLanguage() method. * Mark the javabugs:S2259 reported on checkDeletingDocument() as a false positive, with the reason it is one. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MpQRHF75UXk9WUFoQ1H2Qo * [Misc] Drop the javabugs:S2259 suppression superseded by #6382 XWiki#checkDeletingDocument now throws an explicit XWikiException when the passed document is null, which fixes the SonarCloud issue at its source. The @SuppressWarnings this branch carried is therefore redundant, and its comment claiming the document can never be null is contradicted by the new guard. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MpQRHF75UXk9WUFoQ1H2Qo --------- Co-authored-by: Vincent Massol <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications