This rule is defined by the following XPath expression:
//SwitchStatement[ (count(.//SwitchLabel) < $minimumNumberCaseForASwitch) ]
Example:
public class abstract Example { String field; int otherField; }
This rule has the following properties:
Name | Default value | Description |
---|---|---|
minimumNumberCaseForASwitch | 3 | Minimum number of branches for a switch |