// "Replace 'switch' with 'if'" "false" class X { void m(String s) { switch (s) { case "foo": System.out.println(1); break; default: System.out.println(2); case "bar": System.out.println(3); break; } } }