[xwiki/xwiki-platform] 980424: Fix SonarQube S4275: Ensure getters reference the ...
Branch: refs/heads/claude/magical-faraday-SLKDO Home: https://github.com/xwiki/xwiki-platform Commit: 9804249c240f77b91b716da204c2b1b5203af866 https://github.com/xwiki/xwiki-platform/commit/9804249c240f77b91b716da204c2b... Author: Vincent Massol <[email protected]> Date: 2026-06-03 (Wed, 03 Jun 2026) Changed paths: M xwiki-platform-core/xwiki-platform-mentions/xwiki-platform-mentions-api/src/main/java/org/xwiki/mentions/notifications/MentionNotificationParameters.java Log Message: ----------- Fix SonarQube S4275: Ensure getters reference the expected fields in MentionNotificationParameters The getters getNewMentions() and getMentions() were returning pre-computed unmodifiable wrapper fields (unmodifiableNewMentions/unmodifiableMentions) rather than the fields matching their names (newMentions/mentions), triggering SonarQube rule S4275. The fix renames the mutable backing HashMap fields to mutableNewMentions/mutableMentions and renames the unmodifiable view fields to newMentions/mentions so each getter directly returns the field with the matching name. The public API and behavior are unchanged. To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications