Class UnusedPrivateMethodRule

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

    public class UnusedPrivateMethodRule
    extends net.sourceforge.pmd.lang.java.rule.internal.AbstractIgnoredAnnotationRule
    This rule detects private methods, that are not used and can therefore be deleted.
    • Constructor Detail

      • UnusedPrivateMethodRule

        public UnusedPrivateMethodRule()
    • Method Detail

      • defaultSuppressionAnnotations

        protected Collection<String> defaultSuppressionAnnotations()
        Overrides:
        defaultSuppressionAnnotations in class net.sourceforge.pmd.lang.java.rule.internal.AbstractIgnoredAnnotationRule