mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 17:47:53 +07:00
GitOrigin-RevId: c3e7f12fb11926084fa8a71467394635d1cfc5d9
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);
|
|
}
|
|
}
|
|
} |