Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 406 Bytes

NonCaseLabelInSwitchStatement.md

File metadata and controls

8 lines (6 loc) · 406 Bytes

NonCaseLabelInSwitchStatement

Category: pmd
Rule Key: pmd:NonCaseLabelInSwitchStatement

⚠️ This rule is deprecated in favour of S1219.


A non-case label (e.g. a named break/continue label) was present in a switch statement. This legal, but confusing. It is easy to mix up the case labels and the non-case labels.