forked from phoedos/pmd
Correct -benchmark reporting of Rule visits via the RuleChain
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6912 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -4,6 +4,7 @@ Fixed bug 2590258 - NPE with nicerhtml output
|
|||||||
Fixed bug 2317099 - False + in SimplifyCondition
|
Fixed bug 2317099 - False + in SimplifyCondition
|
||||||
Fixed bug 2606609 - False "UnusedImports" positive in package-info.java
|
Fixed bug 2606609 - False "UnusedImports" positive in package-info.java
|
||||||
Fixed bug 2645268 - ClassCastException in UselessOperationOnImmutable.getDeclaration
|
Fixed bug 2645268 - ClassCastException in UselessOperationOnImmutable.getDeclaration
|
||||||
|
Correct -benchmark reporting of Rule visits via the RuleChain
|
||||||
|
|
||||||
Android ruleset: CallSuperLast rule now also checks for finish() redefinitions
|
Android ruleset: CallSuperLast rule now also checks for finish() redefinitions
|
||||||
|
|
||||||
|
@ -59,9 +59,9 @@ public abstract class AbstractRuleChainVisitor implements RuleChainVisitor {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// For each rule, allow it to visit the nodes it desires
|
// For each rule, allow it to visit the nodes it desires
|
||||||
int visits = 0;
|
|
||||||
start = System.nanoTime();
|
start = System.nanoTime();
|
||||||
for (Rule rule: ruleSetRules.get(ruleSet)) {
|
for (Rule rule: ruleSetRules.get(ruleSet)) {
|
||||||
|
int visits = 0;
|
||||||
final List<String> nodeNames = rule.getRuleChainVisits();
|
final List<String> nodeNames = rule.getRuleChainVisits();
|
||||||
for (int j = 0; j < nodeNames.size(); j++) {
|
for (int j = 0; j < nodeNames.size(); j++) {
|
||||||
List<SimpleNode> nodes = nodeNameToNodes.get(nodeNames.get(j));
|
List<SimpleNode> nodes = nodeNameToNodes.get(nodeNames.get(j));
|
||||||
|
Reference in New Issue
Block a user