diff --git a/pmd/src/net/sourceforge/pmd/sourcetypehandlers/JspTypeHandler.java b/pmd/src/net/sourceforge/pmd/sourcetypehandlers/JspTypeHandler.java index 12440e9dab..747989885e 100644 --- a/pmd/src/net/sourceforge/pmd/sourcetypehandlers/JspTypeHandler.java +++ b/pmd/src/net/sourceforge/pmd/sourcetypehandlers/JspTypeHandler.java @@ -15,8 +15,7 @@ import java.util.Map; * @author pieter_van_raemdonck - Application Engineers NV/SA - www.ae.be */ public class JspTypeHandler implements SourceTypeHandler { - DummyVisitorStarter dummyVisitor = new DummyVisitorStarter(); - + public Parser getParser() { return new Parser() { public Object parse(Reader source) throws ParseException { @@ -31,7 +30,7 @@ public class JspTypeHandler implements SourceTypeHandler { } public VisitorStarter getDataFlowFacade() { - return dummyVisitor; + return VisitorStarter.dummy; } public VisitorStarter getSymbolFacade() { diff --git a/pmd/src/net/sourceforge/pmd/sourcetypehandlers/VisitorStarter.java b/pmd/src/net/sourceforge/pmd/sourcetypehandlers/VisitorStarter.java index 210cc749f4..823ecfd00d 100644 --- a/pmd/src/net/sourceforge/pmd/sourcetypehandlers/VisitorStarter.java +++ b/pmd/src/net/sourceforge/pmd/sourcetypehandlers/VisitorStarter.java @@ -8,6 +8,8 @@ package net.sourceforge.pmd.sourcetypehandlers; */ public interface VisitorStarter { + VisitorStarter dummy = new VisitorStarter() { public void start(Object rootNode) {} }; + /** * Start the visitor, given the root-node of the AST. *