When the following code snippet is evaluated, the ? in Class<? extends String> is counted as a condition (thus, adding 1 to the CCN). This results in the following method:
void A(){
List<?> list = new ArrayList<Set<Class<? extends String>>>();
}
having a Cyclomatic Complexity of 2, even though this should be 1.
When the following code snippet is evaluated, the
?
inClass<? extends String>
is counted as a condition (thus, adding 1 to the CCN). This results in the following method:having a Cyclomatic Complexity of 2, even though this should be 1.