Appending String.valueOf()
to a String
decreases the code readability.
The argument passed to String.valueOf()
should be directly appended instead.
Noncompliant code example
String message = "Output is " + String.valueOf(12);
Compliant solution
String message = "Output is " + 12;