[xwiki/xwiki-platform] 557af2: [Misc] Fix the SonarQube javabugs:S2259 of ScopeNo...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 557af24eb362a9411b96ee8357af2ee13e268961 https://github.com/xwiki/xwiki-platform/commit/557af24eb362a9411b96ee8357af2... Author: Vincent Massol <[email protected]> Date: 2026-09-15 (Tue, 15 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-api/pom.xml M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-api/src/main/java/org/xwiki/notifications/filters/internal/LocationOperatorNodeGenerator.java A xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-api/src/test/java/org/xwiki/notifications/filters/internal/LocationOperatorNodeGeneratorTest.java Log Message: ----------- [Misc] Fix the SonarQube javabugs:S2259 of ScopeNotificationFilterExpressionGenerator (#6401) * LocationOperatorNodeGenerator#generateNode() returned null for any entity type other than document, space and wiki, and ScopeNotificationFilterExpressionGenerator dereferences that result without a null check. Throw an IllegalArgumentException for the unsupported types instead, so that the method never returns null. * Add unit tests for LocationOperatorNodeGenerator and raise the module's JaCoCo instruction ratio from 0.65 to 0.6746. Co-authored-by: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications