Inspectopedia
 
2024.3

Call to 'String.concat()' can be replaced with '+'

Warning
New
Last modified: 03 December 2024

Reports calls to java.lang.String.concat().

Such calls can be replaced with the + operator for clarity and possible increased performance if the method was invoked on a constant with a constant argument.

Example:

After the quick-fix is applied: