refactor: Replace unused exception parameter with underscore#2721
Merged
bog-walk merged 8 commits intoJetBrains:mainfrom Feb 4, 2026
Merged
refactor: Replace unused exception parameter with underscore#2721bog-walk merged 8 commits intoJetBrains:mainfrom
bog-walk merged 8 commits intoJetBrains:mainfrom
Conversation
bog-walk
requested changes
Jan 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary of the change: Provide a concise summary of this PR. Describe the changes made in a single sentence or short paragraph
Replace unused exception parameter in catch block.
(exposed-core/src/main/kotlin/org/jetbrains/exposed/v1/core/vendors/OracleDialect.kt)
(exposed-jdbc/src/main/kotlin/org/jetbrains/exposed/v1/jdbc/statements/InsertBlockingExecutable.kt)
(exposed-jdbc/src/main/kotlin/org/jetbrains/exposed/v1/jdbc/transactions/Transactions.kt)
(exposed-r2dbc/src/main/kotlin/org/jetbrains/exposed/v1/r2dbc/transactions/Transactions.kt)
Detailed description:
Why: Explain the reasons behind the changes. Why were they necessary?
Following Kotlin's idiomatic conventions, unused variables should be represented with an underscore (
_) rather than named parameters. This improves code readability and makes it immediately clear that the exception parameter is intentionally unused. It also eliminates IDE warnings about unused variables and aligns with the Kotlin style guide recommendations.What: Detail what changes have been made in the PR.
This PR replaces unused exception parameters in catch blocks with underscore notation across the codebase. The changes affect exception handling where the caught exception is not referenced in the catch block body.
How: Describe how the changes were implemented, including any key aspects of the code modified or new features added.
e,ex,exception) with_Type of Change
Please mark the relevant options with an "X":
Updates/remove existing public API methods:
Affected databases:
Checklist
Related Issues