Skip to content

Fix Simplify if/else to single return if possible clean-up#3038

Merged
jjohnstn merged 1 commit into
eclipse-jdt:masterfrom
jjohnstn:simplifyfix
Jun 17, 2026
Merged

Fix Simplify if/else to single return if possible clean-up#3038
jjohnstn merged 1 commit into
eclipse-jdt:masterfrom
jjohnstn:simplifyfix

Conversation

@jjohnstn

Copy link
Copy Markdown
Contributor

What it does

See issue.

How to test

See issue or new test.

Author checklist

- do not perform clean-up if the then statement is not a boolean literal
- add new test to CleanUpTest
- fixes eclipse-jdt#3020
@jjohnstn jjohnstn self-assigned this Jun 17, 2026
@jjohnstn jjohnstn added the bug Something isn't working label Jun 17, 2026
@jjohnstn jjohnstn added this to the 4.41 M1 milestone Jun 17, 2026
@jjohnstn
jjohnstn merged commit 733c48c into eclipse-jdt:master Jun 17, 2026
13 checks passed
@jjohnstn
jjohnstn deleted the simplifyfix branch June 17, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cleanup 'Simplfy boolean if/else to a single return if possible' removes required returns

1 participant