[xwiki/xwiki-platform] 132f4b: [Misc] Don't throw exceptions from a finally block...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 132f4b880060ad8cb2063041b771fdfc1e60af63 https://github.com/xwiki/xwiki-platform/commit/132f4b880060ad8cb2063041b771f... Author: Vincent Massol <[email protected]> Date: 2026-07-02 (Thu, 02 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-xar/xwiki-platform-xar-model/src/main/java/org/xwiki/xar/XarPackage.java Log Message: ----------- [Misc] Don't throw exceptions from a finally block in XarPackage#write Log a warning instead of throwing when closing the XML stream writer fails in the finally block, so a close failure never masks the original exception from the try block (or gets thrown with no original failure to report). Fixes SonarCloud issues java:S1143 and java:S1163. Co-Authored-By: Vincent Massol <[email protected]> * [Misc] Wrap logged value in brackets per XWiki code style Follow the XWiki Java code style logging convention of wrapping logged placeholder values in [] for readability. Co-Authored-By: Vincent Massol <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications