1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00
cdt/build
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
..
org.eclipse.cdt.autotools-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.autotools.core Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
org.eclipse.cdt.autotools.docs Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.autotools.source-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.autotools.tests Bug 490995 - [tests] autotools.tests and debug.app.tests bundles have missing resources 2016-04-05 07:46:04 -05:00
org.eclipse.cdt.autotools.ui Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
org.eclipse.cdt.autotools.ui.tests Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.build.gcc.core Major change to new build arch to give configs more power. 2016-04-23 22:35:33 -04:00
org.eclipse.cdt.cmake-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.cmake.core Major change to new build arch to give configs more power. 2016-04-23 22:35:33 -04:00
org.eclipse.cdt.cmake.ui Remove build.core from cmake.ui. 2016-04-14 16:41:57 -04:00
org.eclipse.cdt.gnu.build-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.gnu.build.source-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.make.core Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
org.eclipse.cdt.make.core.tests Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.make.ui Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 18:49:32 -04:00
org.eclipse.cdt.make.ui.tests Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.managedbuilder.core Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
org.eclipse.cdt.managedbuilder.core.tests Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
org.eclipse.cdt.managedbuilder.gnu.ui Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 18:49:32 -04:00
org.eclipse.cdt.managedbuilder.ui Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
org.eclipse.cdt.managedbuilder.ui.tests Bug 491945 - Remove new String() literals 2016-04-18 23:30:05 +01:00