mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
7 lines
198 B
Java
7 lines
198 B
Java
// "Surround with 'if (obj instanceof String)'" "true-preview"
|
|
class X {
|
|
void test(Object obj) {
|
|
if (obj instanceof Integer) System.out.println();
|
|
String string = (<caret>String)obj;
|
|
}
|
|
} |