1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00
cdt/core
Alex Blewitt fc07efa909 Bug 491825 - Remove primitive wrapper creation
Using `new Integer` and other wrapper types such as `new Character` results in
potential extra heap utilisation as the values are not cached. The built-in
`Integer.valueOf` will perform caching on numbers in the range -128..127 (at
least) using a flyweight pattern. In addition, parsing `int` values can be done
with `Integer.parseInt` which avoids object construction.

Adjust tests such as `"true".equals(expr)` to `Boolean.parseBoolean(expr)`.

Change-Id: I0408a5c69afc4ca6ede71acaf6cc4abd67538006
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-16 12:17:48 -04:00
..
org.eclipse.cdt.core Bug 491825 - Remove primitive wrapper creation 2016-04-16 12:17:48 -04:00
org.eclipse.cdt.core.aix Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.core.linux Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.core.linux.ppc Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.core.linux.ppc64 Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.core.linux.ppc64le Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.core.linux.x86 Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.core.linux.x86_64 Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.core.macosx Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.core.native Update copyright dates 2016-02-11 01:50:14 -05:00
org.eclipse.cdt.core.solaris Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.core.tests Bug 491825 - Remove primitive wrapper creation 2016-04-16 12:17:48 -04:00
org.eclipse.cdt.core.win32 Bug 487444 - Spawner.exec() fails if child process cannot breakaway from parent job 2016-02-09 10:42:46 +01:00
org.eclipse.cdt.core.win32.x86 Bug 487444 - Spawner.exec() fails if child process cannot breakaway from parent job 2016-02-09 10:42:46 +01:00
org.eclipse.cdt.core.win32.x86_64 Bug 487444 - Spawner.exec() fails if child process cannot breakaway from parent job 2016-02-09 10:42:46 +01:00
org.eclipse.cdt.ui Bug 491825 - Remove primitive wrapper creation 2016-04-16 12:17:48 -04:00
org.eclipse.cdt.ui.tests Bug 491825 - Remove primitive wrapper creation 2016-04-16 12:17:48 -04:00