StringBuilder constructor call with 'char' argument

Last modified: 03 December 2024

Reports calls to StringBuffer and StringBuilder constructors with char as the argument. In this case, char is silently cast to an integer and interpreted as the initial capacity of the buffer.

Example:

After the quick-fix is applied: