Synopsis: | Avoid empty switch statements |
Language: | Java |
Severity Level: | 1 |
Category: | Basic |
Description: |
Avoid empty switch statements.public class Foo { public void bar() { int x = 2; switch (x) { // once there was code here // but it's been commented out or something } } } |