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
Jesper Eskilson
92cd626895
Code cleanup in DSF examples.
...
- Added @Override where necessary.
- Added src_ant to source directories in build.properties
- Fixed resource leaks
- Added type parameters where missing (e.g. Vector in PreProcessor.java)
- Removed unused imports
Change-Id: I28c7e295891833f9b561975da0adc92d55f2e048
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2016-03-29 16:18:03 -04:00
Marc Khouzam
f3ff649041
Fix copyright of all CDT plugins using the copyright tool from platform.
...
This commit does not add missing copyrights, just updates the date on
the existing ones.
Change-Id: I646f5afd533a1fcc539bdf2e0686b22f406ecf65
2016-01-03 20:38:31 -05:00
Jesper Eskilson
f07ed550d7
Fixed a couple of FindBugs errors in DSF examples.
...
Change-Id: Ibce2e1ec4f128900989c1420488bf2d1d636e6fc
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2015-08-10 11:27:25 -04:00
Marc Khouzam
87a29d31aa
Add many missing @Override to remove warnings
...
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 11:18:06 -04:00
Pawel Piech
4d02730830
DSF - Added support for arrays in PDA example.
2012-10-30 11:43:00 -07:00
Andrew Gvozdev
ae0d300399
bug 319777: Restored 1.2 as it does not compile with Java 1.5
2010-07-14 17:24:12 +00:00
Andrew Gvozdev
dbe5a12393
bug 319777: Missing @Override annotations
...
patch from Petri Tuononen
2010-07-14 13:51:53 +00:00
Vivian Kong
70237c3d81
Bug 315439 Fix up copyright
2010-06-03 00:12:05 +00:00
Pawel Piech
5b47187366
Migrated DSF and DSF-GDB to the CDT project.
2009-01-08 21:08:05 +00:00