forked from phoedos/pmd
refactoring: ByRule suffix dropped
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4940 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -5,8 +5,8 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sourceforge.pmd.ast.JavaRuleChainVisitorByRule;
|
||||
import net.sourceforge.pmd.jsp.ast.JspRuleChainVisitorByRule;
|
||||
import net.sourceforge.pmd.ast.JavaRuleChainVisitor;
|
||||
import net.sourceforge.pmd.jsp.ast.JspRuleChainVisitor;
|
||||
|
||||
/**
|
||||
* The RuleChain is a means by which Rules can participate in a uniform
|
||||
@ -76,9 +76,9 @@ public class RuleChain {
|
||||
.get(language);
|
||||
if (visitor == null) {
|
||||
if (Language.JAVA.equals(language)) {
|
||||
visitor = new JavaRuleChainVisitorByRule();
|
||||
visitor = new JavaRuleChainVisitor();
|
||||
} else if (Language.JSP.equals(language)) {
|
||||
visitor = new JspRuleChainVisitorByRule();
|
||||
visitor = new JspRuleChainVisitor();
|
||||
} else {
|
||||
throw new IllegalArgumentException("Unknown language: "
|
||||
+ language);
|
||||
|
@ -7,7 +7,7 @@ import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.rules.XPathRule;
|
||||
|
||||
public class JavaRuleChainVisitorByRule extends AbstractRuleChainVisitor {
|
||||
public class JavaRuleChainVisitor extends AbstractRuleChainVisitor {
|
||||
|
||||
protected void indexNodes(List astCompilationUnits, RuleContext ctx) {
|
||||
JavaParserVisitor javaParserVistor = new JavaParserVisitorAdapter() {
|
@ -7,7 +7,7 @@ import net.sourceforge.pmd.Rule;
|
||||
import net.sourceforge.pmd.RuleContext;
|
||||
import net.sourceforge.pmd.rules.XPathRule;
|
||||
|
||||
public class JspRuleChainVisitorByRule extends AbstractRuleChainVisitor {
|
||||
public class JspRuleChainVisitor extends AbstractRuleChainVisitor {
|
||||
|
||||
protected void indexNodes(List astCompilationUnits, RuleContext ctx) {
|
||||
JspParserVisitor jspParserVisitor = new JspParserVisitorAdapter() {
|
Reference in New Issue
Block a user