Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Also, when a case ends with a return or throw statement, the break statement may be omitted.

Related Guidelines

ISO/IEC TR 24772:2013

Switch Statements and Static Analysis [CLL]

MITRE CWE

CWE-484, Omitted break statement in switch

Rogue 2000Rule 78, The Elements of Java Style

Bibliography

...