Synopsis: | Switch statements should have a default label |
Language: | Java |
Severity Level: | 2 |
Category: | Design |
Description: |
Switch statements should have a default label.public class Foo { public void bar() { int x = 2; switch (x) { case 2: int j = 8; } } } |