Inspectopedia Help

'StringBuilder.toString()' in concatenation

Reports StringBuffer.toString() or StringBuilder.toString() calls in string concatenations. Such calls are unnecessary when concatenating and can be removed, saving a method call and an object allocation, which may improve performance.

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023