1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/core/org.eclipse.cdt.core
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 Revert "Bug 489563 - API change for Language Settings Providers." 2016-03-22 10:32:31 -04:00
browser Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 17:51:12 -05:00
META-INF Tighter integration of new build system with cdt.core. 2016-04-14 16:19:37 -04:00
model/org/eclipse/cdt Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
parser/org/eclipse/cdt Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
schema Tighter integration of new build system with cdt.core. 2016-04-14 16:19:37 -04:00
src/org/eclipse/cdt Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
templateengine/org/eclipse/cdt/core/templateengine Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 17:51:12 -05:00
utils/org/eclipse/cdt Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
.classpath Starting to put Qt onto the new build system and launch. 2015-09-28 13:24:41 -04:00
.cvsignore
.options Bug 366570: Added tracing option. 2012-04-04 14:45:52 +02:00
.project
about.html
build.properties Starting to put Qt onto the new build system and launch. 2015-09-28 13:24:41 -04:00
ChangeLog
ChangeLog-2003
plugin.properties Bug 303083 - Split out the CDT Spawner into a separate feature 2014-05-26 09:38:09 -04:00
plugin.xml Major change to new build arch to give configs more power. 2016-04-23 22:35:33 -04:00
pom.xml Incremented version of org.eclipse.cdt.core to 6.0. 2016-02-17 10:28:26 -08:00