mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 02:24:00 +07:00
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
9 lines
240 B
Java
9 lines
240 B
Java
// "Surround with 'if (obj instanceof String)'" "true-preview"
|
|
class X {
|
|
void test(Object obj) {
|
|
if (obj instanceof Integer) System.out.println();
|
|
if (obj instanceof String) {
|
|
String string = (String)obj;
|
|
}
|
|
}
|
|
} |