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

org.sonar.l10n.java.rules.squid.S1153.html Maven / Gradle / Ivy

The newest version!

Appending String.valueOf() to a String decreases the code readability. The argument passed to String.valueOf() should be directly appended instead.

The following code:

public void display(int i){
  System.out.println("Output is " + String.valueOf(i));    // Non-Compliant
}

should be refactored into:

public void display(int i){
  System.out.println("Output is " + i);                    // Compliant
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy