Skip to content
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

Enhance SwitchExpression cleanup to support return statements #106

Merged
merged 2 commits into from
Jun 16, 2022

Conversation

jjohnstn
Copy link
Contributor

What it does

How to test

Author checklist

- fixes eclipse-jdt#104
- recognize switches that have return statements or throw statements
  from every case and convert switch statement to a return of a
  switch expression
- add new tests to CleanUpTest14
@jjohnstn jjohnstn merged commit 60d50c3 into eclipse-jdt:master Jun 16, 2022
@jjohnstn jjohnstn deleted the switchexp branch June 16, 2022 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code cleanup to switch expression does not work correctly
1 participant