resources.report.rules.pmd.UnnecessaryFullyQualifiedName.html Maven / Gradle / Ivy
UnnecessaryFullyQualifiedName
UnnecessaryFullyQualifiedName
Import statements allow the use of non-fully qualified names. The use of a fully qualified name which is covered by an import statement is redundant. Consider using the non-fully qualified name.
This rule is defined by the following Java class: net.sourceforge.pmd.lang.java.rule.imports.UnnecessaryFullyQualifiedNameRule
Example(s):
import java.util.List;
public class Foo {
private java.util.List list1; // Unnecessary FQN
private List list2; // More appropriate given import of 'java.util.List'
}