
resources.report.rules.pmd.StringToString.html Maven / Gradle / Ivy
StringToString
StringToString
Avoid calling toString() on String objects; this is unnecessary.
This rule is defined by the following Java class:
net.sourceforge.pmd.rules.strings.StringToStringRule
Example:
public class Foo {
private String baz() {
String bar = "howdy";
return bar.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy