This should validate https://jira.codehaus.org/browse/SONAR-3900.
Evgeny, I let you reassign SONAR-3900 to Julien once you have validated that it works as expected, thanks.
Add new metrics "complexity in classes" and "complexity in methods" to compute "complexity/class" and "complexity/method"
SONARJAVA-133.zip can be used to verify this ticket : currently Sonar shows "complexity 5 / method", whereas should "complexity 3 / method".
We are not going to compute metric "complexity in classes", because in Java, there is no way to have a code outside of classes, so it will always be equal to overall complexity.
Fabrice, I let you decide what to do with SONAR-3900, because indeed - with Java we able to verify only "complexity in methods", but not "complexity in classes". However I want to believe that they have same implementation, so if one works, then another also should work.
Integration tests were updated.