mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
13 lines
288 B
Java
13 lines
288 B
Java
// "Simplify 'obj instanceof String str' to true extracting side effects" "true"
|
|
class Test {
|
|
void test(Object obj) {
|
|
if (obj instanceof String s) {
|
|
s = s.trim();
|
|
String str = (String) obj;
|
|
if (str.isEmpty()) {
|
|
|
|
}
|
|
System.out.println(s);
|
|
}
|
|
}
|
|
} |