commit | 5f0487fb06a82c64e3484322584d6da61401a7e2 | [log] [tgz] |
---|---|---|
author | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Wed Apr 14 18:53:53 2021 +0200 |
committer | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Sun Apr 18 10:07:59 2021 -0400 |
tree | c79447a24d06654cf609c400b3e92c30b45d7a80 | |
parent | fc332c282505e453fff08ed74cbb4bc0b4a3db02 [diff] |
Bug 572851 - [AutoRefactor #75/153] Redundant truth Directly checks boolean values instead of comparing them with true/false: - The operator can be equals, not equals or XOR, - The constants can be a literal or a java.lang.Boolean constant, - One operand should be primitive so no new null pointer exceptions may occur. Given: if (isValid == true) { int i = 0; } When: Applying "Boolean value rather than comparison" clean up... Then: if (isValid) { int i = 0; } Change-Id: If40bd448d4654c66c10587a5c75d1358f385e59d Signed-off-by: Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/179318 Reviewed-by: Holger Voormann <eclipse@voormann.de> Tested-by: JDT Bot <jdt-bot@eclipse.org>
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.