forked from phoedos/pmd
Fix compile error
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user