Skip to content

[Misc] Fix various SonarCloud issues (combine catch blocks, remove redundant jumps)#5844

Open
vmassol wants to merge 1 commit into
masterfrom
claude/vigilant-dirac-xg4aaz
Open

[Misc] Fix various SonarCloud issues (combine catch blocks, remove redundant jumps)#5844
vmassol wants to merge 1 commit into
masterfrom
claude/vigilant-dirac-xg4aaz

Conversation

@vmassol

@vmassol vmassol commented Jul 14, 2026

Copy link
Copy Markdown
Member

Fixes a batch of mechanical SonarCloud issues across several modules.

java:S2147 — Combine catch clauses with identical bodies (multi-catch)

  • ColumnGadgetissue
  • SingleAnnotationRESTResource (x2) — issue, issue
  • PackageAPIissue
  • R35100XWIKI7564DataMigration (x2) — issue, issue
  • R35101XWIKI7645DataMigrationissue
  • R35102XWIKI7771DataMigrationissue
  • SolrIndexScriptServiceissue
  • ZipExplorerPlugin (x2) — issue, issue

Note: in R35100XWIKI7564DataMigration, UnsupportedEncodingException (a subclass of IOException) is caught with an identical empty body, so the redundant subclass catch was removed rather than merged (multi-catch of a type and its subtype is illegal); the now-unused import was removed too.

java:S3626 — Remove redundant jump statements

  • MyFormAuthenticator — trailing return;issue
  • MyPersistentLoginManager (x2) — trailing return;issue, issue
  • ListClass — trailing return; and a redundant continue;issue, issue

All changes are behavior-preserving. Verified with mvn clean install (checkstyle + Spoon) on the affected modules.


Generated by Claude Code

…dundant jumps)

* Combine catch clauses with identical bodies using multi-catch (java:S2147)
* Remove redundant return/continue jump statements (java:S3626)

Co-Authored-By: Vincent Massol <vincent@massol.net>
@vmassol vmassol added the llm-agent To be used for PRs created autonomously by LLM agents. label Jul 14, 2026 — with Claude
@vmassol vmassol self-assigned this Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llm-agent To be used for PRs created autonomously by LLM agents.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant