class Foo { void foo() { switch (a) { case 0: doCase0(); break; default: doDefault(); } } }