-
Notifications
You must be signed in to change notification settings - Fork 101
Null check as switch case #748
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
Conversation
src/test/java/org/openrewrite/java/migrate/lang/NullCheckAsSwitchCaseTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/openrewrite/java/migrate/lang/NullCheckAsSwitchCase.java
Outdated
Show resolved
Hide resolved
…tchCase.java Co-authored-by: Jacob van Lingen <jacobvanlingen@hotmail.com>
src/main/java/org/openrewrite/java/migrate/lang/NullCheckAsSwitchCase.java
Outdated
Show resolved
Hide resolved
…tchCase.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@timtebeek would you want any further review? Or can I go ahead and do the necessary to merge (adapt the declarative yaml, do the nullcheck only in 1 PR...) |
Great work here so far; explored a bit and added more tests and a couple fixes as seen in the diff cfd7189...dcadb16 In the last commit I show we're not consistent with how we handle throws depending on if it's in a block; would we want to make that consistent by allowing rewrite-migrate-java/src/main/java/org/openrewrite/java/migrate/lang/NullCheck.java Lines 66 to 73 in 3a9a928
|
Added the Throws to the if statement. IntelliJ says only Block, expression or throws is possible so we should be good to go now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
What's changed?
Cutting up the task at hand in multiple smaller PR's for better insights, risk assessment...
What's your motivation?
Anything in particular you'd like reviewers to focus on?
Anyone you would like to review specifically?
Have you considered any alternatives or workarounds?
Any additional context
Checklist