commit | 8bcdeadbdb9961130535df4b47a8314a0db91365 | [log] [tgz] |
---|---|---|
author | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Sun Apr 18 05:24:16 2021 +0200 |
committer | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Thu Apr 22 15:02:47 2021 -0400 |
tree | c1856cc921be8fcf454374f2f3558bf2bec9690a | |
parent | 55736e27df2636919fa4d09c8cc9ebf3d0ec3643 [diff] |
Bug 572935 - [AutoRefactor #76/153] short primitive rather than wrapper Replace Short wrapper object by short 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. Given: Short shouldBeAPrimitiveShort = Short.MIN_VALUE; aShort &= shouldBeAPrimitiveShort; anotherShort += shouldBeAPrimitiveShort; yetAnotherShort ^= shouldBeAPrimitiveShort; When: Applying "Primitive rather than wrapper" clean up... Then: short shouldBeAPrimitiveLong = Short.MIN_VALUE; aShort &= shouldBeAPrimitiveShort; anotherShort += shouldBeAPrimitiveShort; yetAnotherShort ^= shouldBeAPrimitiveShort; Change-Id: Id10a676531c92e04f17b052f6fbc7455c476ed23 Signed-off-by: Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/179464 Tested-by: JDT Bot <jdt-bot@eclipse.org> Reviewed-by: Jörg Kubitz <jkubitz-eclipse@gmx.de>
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.