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