8
DrkChpr
5y

"Refractor this method to reduce its Cognitive Complexity from 110 to 15 allowed."
*Pan*

Ok let's do it :

label : for(....) {
if(...){
for(.....){
If(...){
....
break label;
}
}
}
}

*Pan Pan*

Comments
  • 1
    @irene in fact the method is very very long, I just show a piece of it. (~400 lines)
    This break-label construction appeared twice in this method....
Add Comment