commit | 8f421c25c10dab1d6448ca10772ff922addf073c | [log] [tgz] |
---|---|---|
author | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Sun May 16 14:17:10 2021 +0200 |
committer | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Sun May 16 23:28:20 2021 -0400 |
tree | 31427ac7fd6956905d4d3a2c1be73a58981ffa34 | |
parent | cd864dc7b2e50bda38a52946c4759245697b306d [diff] |
Bug 573325 - [cleanup & saveaction] Handle methods on Primitive/Wrapper Convert a wrapper into a primitive, even if some methods need to be changed: Given: Double alwaysInitializedVar = new Double("0"); if (alwaysInitializedVar.doubleValue() > 0.0) { System.out.println(alwaysInitializedVar.toString() + 1); } return alwaysInitializedVar.compareTo(d); When: Applying the rule "Primitive rather than wrapper"... Then: double alwaysInitializedVar = Double.parseDouble("0"); if (alwaysInitializedVar > 0.0) { System.out.println(Double.toString(alwaysInitializedVar) + 1); } return Double.compare(alwaysInitializedVar, d); Change-Id: I240fa2a9afb61257eed10b9673b54d036a1ad717 Signed-off-by: Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/180151
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.