mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
Also 'assert x instanceof Type' fix is provided GitOrigin-RevId: 56603a5cb9ce2040525b4147cc8fcabd6f6d7d5d
9 lines
232 B
Java
9 lines
232 B
Java
// "Surround with 'if (obj instanceof String)'" "true"
|
|
class X {
|
|
void test(Object obj) {
|
|
if (obj instanceof Integer) System.out.println();
|
|
if (obj instanceof String) {
|
|
String string = (String)obj;
|
|
}
|
|
}
|
|
} |