blob: 793f5314fc663c72738c8cbbbb6c27366e44acd5 [file] [log] [blame]
public class Aaa {
Object getObject() {
return null;
}
void f() {
Object obj = getObject();
if (obj instanceof Aaa || obj == null) {
Aaa a = (Aaa) obj; // inspection reports that ClassCastException can be thrown
}
}
}