[xwiki/xwiki-rendering] 396ff5: [Misc] Replace an instanceof if/else chain with a ...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-rendering Commit: 396ff5541fa3d77d65c81ccdcf0fe107c77e4120 https://github.com/xwiki/xwiki-rendering/commit/396ff5541fa3d77d65c81ccdcf0f... Author: claude[bot] <209825114+claude[bot]@users.noreply.github.com> 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) (#415) * 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 <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-rendering/settings/notifications
participants (1)
-
XWiki Notifications