Class AvoidDuplicateLiteralsRule

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.ast.AstVisitor, JavaVisitor, net.sourceforge.pmd.lang.rule.Rule, net.sourceforge.pmd.properties.PropertySource

    public class AvoidDuplicateLiteralsRule
    extends AbstractJavaRulechainRule
    • Field Detail

      • THRESHOLD_DESCRIPTOR

        public static final net.sourceforge.pmd.properties.PropertyDescriptor<Integer> THRESHOLD_DESCRIPTOR
      • MINIMUM_LENGTH_DESCRIPTOR

        public static final net.sourceforge.pmd.properties.PropertyDescriptor<Integer> MINIMUM_LENGTH_DESCRIPTOR
      • SKIP_ANNOTATIONS_DESCRIPTOR

        public static final net.sourceforge.pmd.properties.PropertyDescriptor<Boolean> SKIP_ANNOTATIONS_DESCRIPTOR
    • Constructor Detail

      • AvoidDuplicateLiteralsRule

        public AvoidDuplicateLiteralsRule()
    • Method Detail

      • start

        public void start​(net.sourceforge.pmd.reporting.RuleContext ctx)
        Specified by:
        start in interface net.sourceforge.pmd.lang.rule.Rule
        Overrides:
        start in class net.sourceforge.pmd.lang.rule.AbstractRule
      • end

        public void end​(net.sourceforge.pmd.reporting.RuleContext ctx)
        Specified by:
        end in interface net.sourceforge.pmd.lang.rule.Rule
        Overrides:
        end in class net.sourceforge.pmd.lang.rule.AbstractRule