forked from phoedos/pmd
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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user