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:
Xavier Le Vourch
2007-01-12 19:33:00 +00:00
parent ca9602b1ab
commit 632d65cb17
3 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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() {

View File

@ -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() {