[xwiki/xwiki-commons] 816355: [Misc] Keep the eager String for the RepositoryUti...
Branch: refs/heads/claude/nifty-bell-jwqn4a Home: https://github.com/xwiki/xwiki-commons Commit: 816355e66056efce4e72eb204a7b34aa6d962ea5 https://github.com/xwiki/xwiki-commons/commit/816355e66056efce4e72eb204a7b34... Author: Vincent Massol <[email protected]> Date: 2026-08-11 (Tue, 11 Aug 2026) Changed paths: M xwiki-commons-core/xwiki-commons-extension/xwiki-commons-extension-api/src/main/java/org/xwiki/extension/repository/internal/RepositoryUtils.java Log Message: ----------- [Misc] Keep the eager String for the RepositoryUtils search log * The java:S3457 fix on RepositoryUtils reverted the hunk XWIKI-24665 (#1884) had just applied. RepositoryUtils.search runs on extension job threads, where AbstractJobStatus captures the LogEvent with its raw Object[] and SafeMessageConverter XStream-serializes it into the job log, so the eager String is deliberate. * Use String.valueOf(...) instead: it clears java:S3457 (no toString() call) while keeping the snapshot, as done in DefaultJobProgress by #1872. No java:S2629 suppression is needed here since the call sits in a catch block, which that rule skips. Co-Authored-By: Vincent Massol <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-commons/settings/notifications
participants (1)
-
XWiki Notifications