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.tests
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 Normalized preferences. 2016-02-26 19:46:39 -08:00
icons Patch for Devin Steffler w/ Modifications - Indexer View Search 2005-04-18 19:06:02 +00:00
META-INF Enabled JDK 1.7. 2014-01-24 13:38:55 -05:00
resources Bug 442754 - Refactor the test harness for semantic highlightings 2014-11-15 01:25:41 -05:00
src/org/eclipse/cdt/ui Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 17:51:12 -05:00
ui/org/eclipse/cdt/ui/tests Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
.classpath Enabled JDK 1.7. 2014-01-24 13:38:55 -05:00
.cvsignore enter .cvsignore. 2002-10-24 12:42:02 +00:00
.options Providing .options file for easy trace activation. 2006-03-22 00:54:08 +00:00
.project Got rid of the static project references in our .project files. PDE takes care of all this now through the plugin dependencies. Also fixed the wording of the PDOM enabler to make sure people know this is a work in progress. 2005-12-02 20:43:14 +00:00
about.html EPL'ing the CDT. 2005-06-23 14:44:35 +00:00
build.properties update copyrights 2009-05-27 15:48:21 +00:00
ChangeLog . 2005-08-30 20:18:35 +00:00
plugin.xml Add real categories for templates. Organize selection in tree. 2012-01-27 13:41:24 -05:00
pom.xml Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
test.xml Cleanup some left over gunk from the move of stuff to org.eclipse.cdt.core.tests 2003-07-15 13:43:18 +00:00