commit | 77fcf89339c8726fee95a54f8f519e12799df3f8 | [log] [tgz] |
---|---|---|
author | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Sun Dec 20 15:07:40 2020 +0100 |
committer | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Wed Feb 03 19:39:50 2021 +0100 |
tree | 8a77c3758270fce17e472548262e4093e798b850 | |
parent | 594de5f8b941f3ef8352612d011604bc98721ecd [diff] |
Bug 569845 - [AutoRefactor immigration #50/146] [cleanup & saveaction] Unreachable block Detects two if conditions that are identical and removes the second one: - The conditions should be passive, - No exceptions should be awaited, - It should not create unreachable code below the if statement, that is to say the case where only the removed block doesn't fall through, all the other cases fall through, there is an else and a code is below. Given: if (b1 && b2) { return 0; } else if (b2 && b1) { return 1; } When: Clean up the code enabling "Unreachable block" Then: if (b1 && b2) { return 0; } Change-Id: I186720e12386800386f3f861f51e4ff1be7b30ee Signed-off-by: Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr>
Thanks for your interest in this project.
The JDT UI implements the user interface for the Java IDE. This includes views like Package Explorer and JUnit, the Java and properties files editors, Java search, and refactorings. Website: http://www.eclipse.org/jdt/ui/
Contributions to JDT UI are most welcome. There are many ways to contribute, from entering high quality bug reports, to contributing code or documentation changes. For a complete guide, see the [How to Contribute] 1 page on the team wiki.
Information regarding source code management, builds, coding standards, and more.
Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).
Public forum for Eclipse JDT users.
This project uses Bugzilla to track ongoing development and issues.
Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!
Contact the project developers via the project's “dev” list.