1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00
cdt/codan/org.eclipse.cdt.codan.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 Remove unused API filters 2014-04-09 15:24:47 -04:00
META-INF Removed deprecated method in codan.core, bumped version to 4.0 2016-01-08 07:51:04 -05:00
OSGI-INF/l10n Normalized extension point labels. 2012-08-24 10:14:48 -07:00
schema Bug 372551. Codan support for writing checkers that invoke external 2012-04-18 15:52:48 -04:00
src/org/eclipse/cdt/codan 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
.options codan - tracing options for printing checker stats 2015-03-04 14:27:39 -05:00
.project [279740] API scrub 2010-03-08 19:51:33 +00:00
about.html Add missing about.html files. 2010-06-14 18:35:55 +00:00
build.properties Bug 351157 - Codan Source Plugin has incorrect Bundle-Name / 2011-07-05 21:59:02 -04:00
plugin.xml Normalized extension point labels. 2012-08-24 10:14:48 -07:00
pom.xml Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00