resources.report.rules.pmd.StringToString.html Maven / Gradle / Ivy
StringToString
StringToString
Avoid calling toString() on objects already known to be string instances; this is unnecessary.
This rule is defined by the following Java class: net.sourceforge.pmd.lang.java.rule.strings.StringToStringRule
Example(s):
private String baz() {
String bar = "howdy";
return bar.toString();
}