[xwiki/xwiki-rendering] 0d6fdb: [Misc] Replace an instanceof if/else chain with a ...
Branch: refs/heads/claude/peaceful-archimedes-b8qklo Home: https://github.com/xwiki/xwiki-rendering Commit: 0d6fdb04ec0245e4e9d8bcd5e6f251f0e6d524b4 https://github.com/xwiki/xwiki-rendering/commit/0d6fdb04ec0245e4e9d8bcd5e6f2... Author: Vincent Massol <vincent@massol.net> Date: 2026-08-27 (Thu, 27 Aug 2026) Changed paths: M xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/internal/macro/source/MacroContentSourceReferenceConverter.java Log Message: ----------- [Misc] Replace an instanceof if/else chain with a switch expression (SonarQube) * Fixes 1 SonarQube java:S6880 issue ("Replace the chain of if/else with a switch expression"), using Java 21 pattern matching for switch. * The branch order is unchanged and "case null" keeps the original null behaviour (a null value went to the else branch). Co-Authored-By: Vincent Massol <vincent@massol.net> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-rendering/settings/notifications
participants (1)
-
XWiki Notifications