Class UnnecessaryConstructorRule

java.lang.Object
net.sourceforge.pmd.properties.AbstractPropertySource
net.sourceforge.pmd.lang.rule.AbstractRule
net.sourceforge.pmd.lang.java.rule.AbstractJavaRule
net.sourceforge.pmd.lang.java.rule.internal.AbstractIgnoredAnnotationRule
net.sourceforge.pmd.lang.java.rule.codestyle.UnnecessaryConstructorRule
All Implemented Interfaces:
AstVisitor, JavaVisitor, Rule, PropertySource

public class UnnecessaryConstructorRule extends net.sourceforge.pmd.lang.java.rule.internal.AbstractIgnoredAnnotationRule
This rule detects when a constructor is not necessary; i.e., when there is only one constructor, it’s public, has an empty body, and takes no arguments.