commit | 68d7a452b9bfcdbe977ce992fa538a489f0c1a38 | [log] [tgz] |
---|---|---|
author | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Sat Apr 03 09:02:48 2021 +0200 |
committer | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Fri Apr 09 12:50:24 2021 -0400 |
tree | 954f997538807326ca540f158933da57fcd8ca1d | |
parent | 6120d0b5f27eb865935ed481fb04d303d84dcf9d [diff] |
Bug 572561 - [AutoRefactor immigration #70/151] [cleanup & saveaction] Use int rather than java.lang.Integer Replace Integer wrapper object by int primitive type when an object is not necessary: - The variable must be not null, - The result should not make more autoboxing/unboxing than the original code. The benefit is: - To reduce autoboxing/unboxing to improve the space and time performance - To help the developer to track null pointers in the code Given: Integer assignedInteger = Integer.MIN_VALUE; aInteger &= assignedInteger; anotherInteger += assignedInteger; yetAnotherInteger ^= assignedInteger; When: Clean up the code enabling "Use int rather than java.lang.Integer" Then: int assignedInteger = Integer.MIN_VALUE; aInteger &= assignedInteger; anotherInteger += assignedInteger; yetAnotherInteger ^= assignedInteger; Change-Id: I9361865c2a05d1d9441d0f52ac1018ba59a3fb8f
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.