commit | 08524dbeb8dcfcbc49cc3f3a96b5d4fefb6e4154 | [log] [tgz] |
---|---|---|
author | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Tue Apr 13 06:36:10 2021 +0200 |
committer | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Tue Apr 13 08:55:01 2021 +0200 |
tree | 861c354ca2d03f74906ce4d8ac90ccde947a5ea9 | |
parent | 6d2e79766c18d0f668a647e68fe7c669d94b2e7e [diff] |
Bug 572790 - [AutoRefactor #74/153] 1 if rather than duplicate Merge consecutive if statements with same code block that end with a jump statement: Given: if (i1 == 0) { System.out.println("The same code"); return; } if (i1 == 1) { System.out.println("The same code"); return; } System.out.println("Next code"); When: Applying "One if rather than duplicate blocks that fall through" clean up... Then: if ((i1 == 0) || (i1 == 1)) { System.out.println("The same code"); return; } System.out.println("Next code"); Change-Id: I94d94c3f1bb101f74a10d320baff0ae3a938a4d6 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.