Fix compile error

This commit is contained in:
Andreas Dangel
2020-06-26 11:11:53 +02:00
parent 00dbe08282
commit 642121c86b

View File

@ -6,9 +6,7 @@ package net.sourceforge.pmd.lang.swift;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.lang.ast.AstVisitor;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.ast.impl.antlr4.AntlrBaseRule;
import net.sourceforge.pmd.lang.swift.ast.SwiftInnerNode;
public abstract class AbstractSwiftRule extends AntlrBaseRule {
@ -16,16 +14,6 @@ public abstract class AbstractSwiftRule extends AntlrBaseRule {
// inheritance constructor
}
@Override
public void addRuleChainVisit(Class<? extends Node> nodeClass) {
// note that this is made unnecessary by #2490
if (SwiftInnerNode.class.isAssignableFrom(nodeClass)) {
addRuleChainVisit(nodeClass.getSimpleName().substring("Sw".length()));
return;
}
super.addRuleChainVisit(nodeClass);
}
@Override
public abstract AstVisitor<RuleContext, ?> buildVisitor();
}