Merge branch 'fix-1501-oom' of https://github.com/fjalvingh/pmd into pr-103

This commit is contained in:
Andreas Dangel
2016-07-07 21:56:55 +02:00

View File

@@ -166,8 +166,8 @@ public Object visit(ASTClassOrInterfaceDeclaration node, Object data) {
entryStack.push( new Entry( node ) );
super.visit( node, data );
Entry classEntry = entryStack.pop();
if ( showClassesComplexity ) {
Entry classEntry = entryStack.pop();
if ( classEntry.getComplexityAverage() >= reportLevel
|| classEntry.highestDecisionPoints >= reportLevel ) {
addViolation( data, node, new String[] {