Files
2022-09-26 17:31:54 +00:00

9 lines
216 B
Java

// "Replace '(String) obj' with 's1'" "false"
class X {
void test(Object obj, String s) {
if (obj instanceof String s1 && (s1 = "blah blah blah").equals(s)) {
String s2 = (String) ob<caret>j;
}
}
}