Find a file
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
build Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
codan Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
core Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
cross Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
debug Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
doc Bug 472765: User documentation for Path Mapping 2016-04-13 10:41:46 -05:00
dsf Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
dsf-gdb Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
jtag Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 22:17:03 -05:00
launch Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
llvm Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 22:17:03 -05:00
lrparser Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 22:17:03 -05:00
memory Bug 492230 - Replace buffer.append(a+b) calls 2016-04-25 11:38:47 -05:00
native/org.eclipse.cdt.native.serial Serial - Support COM ports > 9. Set default baud rate to 115200. 2016-04-14 19:11:51 -04:00
qt Major change to new build arch to give configs more power. 2016-04-23 22:35:33 -04:00
releng Update outdated maven plugins 2016-04-24 13:55:41 -04:00
remote Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 22:17:03 -05:00
testsrunner Bug 484900: Remove the test runners CDI launch 2016-03-18 14:56:16 -04:00
toolchains/arduino Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 22:17:03 -05:00
upc Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
util Cosmetics. 2016-03-02 14:34:20 -08:00
visualizer Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 22:17:03 -05:00
windows Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 22:17:03 -05:00
xlc Bug 492200 - Replace StringBuffer with StringBuilder 2016-04-21 22:17:03 -05:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Update outdated maven plugins 2016-04-24 13:55:41 -04:00