Fixed property initialization

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4629 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2006-10-12 13:24:16 +00:00
parent 0e2eb81fa6
commit 5c4ed3407d

View File

@ -22,6 +22,7 @@ import net.sourceforge.pmd.ast.ASTSwitchStatement;
import net.sourceforge.pmd.ast.ASTWhileStatement;
import net.sourceforge.pmd.ast.Node;
import net.sourceforge.pmd.ast.SimpleNode;
import net.sourceforge.pmd.ast.ASTCompilationUnit;
import java.util.Stack;
@ -59,8 +60,10 @@ public class CyclomaticComplexity extends AbstractRule {
private Stack entryStack = new Stack();
public CyclomaticComplexity() {
public Object visit(ASTCompilationUnit node, Object data) {
reportLevel = getIntProperty("reportLevel");
super.visit(node, data);
return data;
}
public Object visit(ASTIfStatement node, Object data) {