9
DrkChpr
162d

"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
  • 2
    Ho does he count cognitive complexity? O_o
  • 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....
Your Job Suck?
Get a Better Job
Add Comment