Switch statements should have a default label. Example :
public class Foo { public void bar() { int x = 2; switch (x) { case 2: int j = 8; } } }