Class AtLeastOneConstructorRule

  • All Implemented Interfaces:
    AstVisitor, JavaVisitor, Rule, PropertySource

    public class AtLeastOneConstructorRule
    extends net.sourceforge.pmd.lang.java.rule.internal.AbstractIgnoredAnnotationRule
    This rule detects non-static classes with no constructors; requiring even the default constructor to be explicit. It ignores classes with solely static methods, use UseUtilityClassRule to flag those.
    • Constructor Detail

      • AtLeastOneConstructorRule

        public AtLeastOneConstructorRule()