1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/codan/org.eclipse.cdt.codan.core.test
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
..
.settings Code cleanup in Codan tests. 2016-02-22 12:47:59 -08:00
META-INF Enabled JDK 1.7. 2014-01-24 13:38:55 -05:00
OSGI-INF/l10n Bug 315439 Fix up copyright 2010-06-03 17:01:53 +00:00
src/org/eclipse/cdt/codan Bug 491825 - Remove primitive wrapper creation 2016-04-16 12:17:48 -04:00
.classpath Enabled JDK 1.7. 2014-01-24 13:38:55 -05:00
.project - test project for checkers 2009-09-23 18:34:41 +00:00
about.html Add missing about.html files. 2010-06-14 18:35:55 +00:00
build.properties Remove reference to java environment in build.properties 2015-09-29 08:57:47 -04:00
pom.xml Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
test.xml - added test.xml file 2010-03-04 15:06:10 +00:00