This inspection reports any instances of labelled statements inside of switch statements.
While occasionally intended, this construction is often the result of a typo.
switch(x) { case 1: case2: //typo! case 3: break; } |
Powered by InspectionGadgets |