1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00
cdt/memory/org.eclipse.cdt.debug.ui.memory.search
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 Move some leftover plugins from Java 5 to Java 7. 2015-03-25 13:42:20 -04:00
META-INF Move some leftover plugins from Java 5 to Java 7. 2015-03-25 13:42:20 -04:00
src/org/eclipse/cdt/debug/ui/memory/search Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
.classpath Move some leftover plugins from Java 5 to Java 7. 2015-03-25 13:42:20 -04:00
.project [memory] DSDP-DD -> CDT initial commit 2009-02-09 06:20:34 +00:00
about.html [memory] DSDP-DD -> CDT initial commit 2009-02-09 06:20:34 +00:00
build.properties Upgrade to Tycho 0.14.1 2012-04-23 00:25:47 -04:00
plugin.properties bug 277871 - Externalize strings in plugin.xml and MANIFEST.MF for memory plugins 2009-05-27 15:55:44 +00:00
plugin.xml Bug 473536 - [memory] Add a Find-Replace menu option to the memory view 2015-07-30 13:29:54 -04:00
pom.xml Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00