mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
![]() 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> |
||
---|---|---|
.. | ||
org.eclipse.cdt.autotools-feature | ||
org.eclipse.cdt.autotools.core | ||
org.eclipse.cdt.autotools.docs | ||
org.eclipse.cdt.autotools.source-feature | ||
org.eclipse.cdt.autotools.tests | ||
org.eclipse.cdt.autotools.ui | ||
org.eclipse.cdt.autotools.ui.tests | ||
org.eclipse.cdt.build.gcc.core | ||
org.eclipse.cdt.cmake-feature | ||
org.eclipse.cdt.cmake.core | ||
org.eclipse.cdt.cmake.ui | ||
org.eclipse.cdt.gnu.build-feature | ||
org.eclipse.cdt.gnu.build.source-feature | ||
org.eclipse.cdt.make.core | ||
org.eclipse.cdt.make.core.tests | ||
org.eclipse.cdt.make.ui | ||
org.eclipse.cdt.make.ui.tests | ||
org.eclipse.cdt.managedbuilder.core | ||
org.eclipse.cdt.managedbuilder.core.tests | ||
org.eclipse.cdt.managedbuilder.gnu.ui | ||
org.eclipse.cdt.managedbuilder.ui | ||
org.eclipse.cdt.managedbuilder.ui.tests |