All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.squidjava.rules.squid.S1158.html Maven / Gradle / Ivy

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