// "Replace 'switch' with 'if'" "true-preview" class Test { void test(String str) { if (("foo" + "bar").equals(str)) { } } }