Class UseIndexOfCharRule

  • All Implemented Interfaces:
    JavaParserVisitor, net.sourceforge.pmd.lang.rule.ImmutableLanguage, net.sourceforge.pmd.properties.PropertySource, net.sourceforge.pmd.Rule

    public class UseIndexOfCharRule
    extends AbstractPoorMethodCall
    • Constructor Detail

      • UseIndexOfCharRule

        public UseIndexOfCharRule()
    • Method Detail

      • isViolationArgument

        protected boolean isViolationArgument​(net.sourceforge.pmd.lang.ast.Node arg)
        Description copied from class: AbstractPoorMethodCall
        Returns whether the node being sent to the method is OK or not. Return true if you want to record the method call as a violation.
        Specified by:
        isViolationArgument in class AbstractPoorMethodCall
        Parameters:
        arg - the node to inspect
        Returns:
        boolean