Supply Break Or Comment in Case Statement (SBCCS)

Description:

According to Sun Code Conventions for Java, every time a case falls through (doesn't include a break statement), a comment should be added where the break statement would normally be. The break in the default case is redundant, but it prevents a fall-through error if later another case is added.

Example:

switch( c ) {
    case 'n':
        result += '\n';
        break;
    case 'r':
        result += '\r';
        break;    case '\'':
        someFlag = true;
    case '\"':
        result += c;
        break;
    // some more code...
}