commit | cf4fcb2c1c6119d98183bee918a89cfe2ac5fc22 | [log] [tgz] |
---|---|---|
author | Carsten Hammer <carsten.hammer@t-online.de> | Sat Oct 03 16:21:27 2020 +0200 |
committer | Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr> | Sat Oct 03 11:43:13 2020 -0400 |
tree | 0cc9d0d8412bd425a18832a01e4f3c2314746d83 | |
parent | 903e2ae5ab5ca75896c7bba26280f2194a42c0a3 [diff] |
Bug 567566 - Invokes of inefficient new String() constructor Creating a new java.lang.String object using the no-argument constructor wastes memory because the object so created will be functionally indistinguishable from the empty string constant "". Java guarantees that identical string constants will be represented by the same String object. Therefore,you should just use the empty string constant directly. Rank: Of Concern (18), confidence: Normal Pattern: DM_STRING_VOID_CTOR Type: Dm, Category: PERFORMANCE (Performance) Change-Id: Ieb4d7558e20f2bd4c33fa7e74e3a4fd9847c9343 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.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.