Creating temporary primitive wrapper objects only for String
conversion is inefficient.
Instead, the static toString()
method of those primitive wrapper classes should be used.
For example, the following code:
new Integer(myInteger).toString(); // Non-Compliant
should be refactored into:
Integer(myInteger).toString(); // Compliant