1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00
cdt/dsf/org.eclipse.cdt.dsf
Alex Blewitt 6bdca5f4a2 Bug 492230 - Replace buffer.append(a+b) calls
When using a `StringBuilder` or `StringBuffer` to create a string message,
using implicit string concatenation inside an `.append()` call will
create a nested StringBuilder for the purposes of creating the arguments,
which will subsequently be converted to a String and then passed to
the outer StringBuilder.

Skip the creation of the intermediate object and String by simply
replacing such calls with `buffer.append(a).append(b)`.

Where values are compile time String constants, leave as is so
that the javac compiler can perform compile-time String concatenation.
Ensure that NEWLINE isn't appended in such a way since it is not
a compile time constant `System.getProperty("line.separator")`

Change-Id: I4126aefb2272f06b08332e004d7ea76b6f02cdba
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-25 11:38:47 -05:00
..
.settings Bug 489501 - [memory] Add API to resolve the default memory space id 2016-04-07 15:48:16 -04:00
make Migrated DSF and DSF-GDB to the CDT project. 2009-01-08 21:08:05 +00:00
META-INF Bug 489398 - Support memory spaces in IExpressionDMAdress 2016-03-23 21:17:51 -04:00
src/org/eclipse/cdt/dsf Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
.classpath Move DSF and DSF-GDB plugins to Java 8 2016-02-11 01:49:49 -05:00
.cvsignore Migrated DSF and DSF-GDB to the CDT project. 2009-01-08 21:08:05 +00:00
.options [291684] Equip monitors with a monitor traceback (when tracing) 2009-10-08 22:57:25 +00:00
.project Migrated DSF and DSF-GDB to the CDT project. 2009-01-08 21:08:05 +00:00
about.html Migrated DSF and DSF-GDB to the CDT project. 2009-01-08 21:08:05 +00:00
buckminster.cspex Migrated DSF and DSF-GDB to the CDT project. 2009-01-08 21:08:05 +00:00
build.properties Bug 315439 Fix up copyright 2010-06-03 00:12:05 +00:00
plugin.properties bug 254307 - branding 2009-05-26 14:48:10 +00:00
pom.xml Bug 489398 - Support memory spaces in IExpressionDMAdress 2016-03-23 21:17:51 -04:00