-
Notifications
You must be signed in to change notification settings - Fork 92
Fix UnnecessaryCatch Recipe Multi-Catch Handling
#638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
timtebeek
merged 20 commits into
openrewrite:main
from
stefanodallapalma:unnecessary-catch-fix
Jul 17, 2025
Merged
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
896c89b
Initialize JetBrains Junie 🚀 (#583)
jetbrains-junie[bot] 9c9560f
Revert "Initialize JetBrains Junie 🚀 (#583)" (#585)
knutwannheden c35f582
TypecastParenPad should not make incorrect changes for Groovy
timtebeek d6c83ca
refactor: Extract documentation examples from tests
timtebeek 666b677
UnnecessaryCatch: Handling MultiCatch
07c9553
Fixed case where entire multi-catch should be deleted
f02f258
Apply formatter
timtebeek b5948d0
Collapse conditionals in `isCheckedException` to return early
timtebeek fafb5c7
Remove need for JavaTemplate
timtebeek 157a41f
Reduce further
timtebeek d906394
Also left trim alternatives
timtebeek b902b40
Do not remove catch for exceptions thrown
timtebeek 9fdd61c
Avoid making changes for try with resources
timtebeek fb80117
Merge branch 'main' into unnecessary-catch-fix
timtebeek a271474
Show yet another problematic case
timtebeek 510f347
Fix final test
timtebeek c13655d
Add another failing test
timtebeek 7f3dc94
Update src/main/java/org/openrewrite/staticanalysis/UnnecessaryCatch.…
timtebeek 08496d1
Update src/main/java/org/openrewrite/staticanalysis/UnnecessaryCatch.…
timtebeek 78c5e98
Add another test case seen
timtebeek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.