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

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();
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy