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.ui
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
about_files
browser Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 17:51:12 -05:00
css Fix copyright on the dark theme. 2014-05-28 12:31:36 -04:00
dictionaries Bug 406873 - [spell-check] Update the CDT word lists for Kepler 2013-04-30 11:01:29 -07:00
icons bug 416628: "Export" of entries of language settings providers to referencing projects - added capability 2013-09-08 08:09:10 -04:00
META-INF Incremented version of org.eclipse.cdt.core to 6.0. 2016-02-17 10:28:26 -08:00
schema Remore unused New New Wizard 2015-12-28 13:20:43 -05: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/ui Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
templates Don't produce a blank line at the top of the file if file comment 2013-06-12 17:05:29 -07:00
utils.ui/org/eclipse/cdt/utils/ui/controls Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
.classpath Enabled JDK 1.7. 2014-01-24 13:38:55 -05:00
.cvsignore
.options Bug 45203. Added transitive closing of include maps. 2013-03-30 10:41:59 -07:00
.project
about.html
build.properties Remove reference to java environment in build.properties 2015-09-29 08:57:47 -04:00
ChangeLog
ChangeLog-2003
doxygenTags.csv Bug 397143 - Some new doxygen commands are missing 2012-12-25 01:51:38 -05:00
NEWS
plugin.properties Remore unused New New Wizard 2015-12-28 13:20:43 -05:00
plugin.xml Remore unused New New Wizard 2015-12-28 13:20:43 -05:00
pom.xml Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00