org.sonar.l10n.java.rules.squid.S1158.html Maven / Gradle / Ivy
The newest version!
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.toString(myInteger); // Compliant
© 2015 - 2025 Weber Informatics LLC | Privacy Policy