-
Notifications
You must be signed in to change notification settings - Fork 95
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
Single if cleanup should not concatenate instanceofs that use pattern matching #1200
Comments
- fixes eclipse-jdt#1200 - add new PatternInstanceof logic to OneIfRatherThanDuplicateBlocksThatFallThroughFixCore - add new test to CleanUpTest16
- fixes eclipse-jdt#1200 - add new PatternInstanceof logic to OneIfRatherThanDuplicateBlocksThatFallThroughFixCore - add new test to CleanUpTest16
* Fix one if cleanup to watch for PatternInstanceof nodes - fixes #1200 - add new PatternInstanceof logic to OneIfRatherThanDuplicateBlocksThatFallThroughFixCore - add new test to CleanUpTest16
This issue is not fixed in Eclipse 4.34.0 2024-12. |
There are actually 2 cleanups referenced here. One cleanup combines the multiple ifs as mentioned in the original description. That cleanup was fixed. The other cleanup merges conditions of an if/else if/else. That issue (Bugzilla 570171) should not have been closed. I will post a fix shortly for 2025-03 M2 |
- fix MergeConditionalBlocksCleanup to handle instanceof patterns and not merge them when they have same name - add new test to CleanUpTest16 - fixes eclipse-jdt#1200
Running Single if cleanup on the following:
results in:
part of #1197
The text was updated successfully, but these errors were encountered: