E.g.
class Foo {
private static int compareImports(String import1, String import2) {
for (int i = 0; i != import1Tokens.length && i != import2Tokens.length; i++) {
}
}
}
The current implementation counts the complexity of the expression in the initializer int i = 0 instead of the boolean expression:
|
int boolCompFor = CycloMetric.booleanExpressionComplexity(node.getFirstDescendantOfType(ASTExpression.class)); |
E.g.
The current implementation counts the complexity of the expression in the initializer
int i = 0instead of the boolean expression:pmd/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/metrics/impl/visitors/CycloPathAwareDecorator.java
Line 49 in 1db950b