[xwiki-notifications] [xwiki/xwiki-platform] 483841: [misc] Improve code based on SonarQube suggestions.