Inspectopedia
 
2024.3

Call of 'toString' could be replaced with string template

Info
New
Last modified: 03 December 2024

Reports toString function calls that can be replaced with a string template.

Using string templates makes your code simpler.

The quick-fix replaces toString with a string template.

Example:

After the quick-fix is applied: