mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 17:52:27 +07:00
GitOrigin-RevId: f1b30c8502b8b596d82ad8fea7b9a7aaceef6b80
16 lines
352 B
Java
16 lines
352 B
Java
import org.jetbrains.annotations.*;
|
|
|
|
public class InferenceNullityMismatch {
|
|
static String getData(Super obj) {
|
|
if (!(obj instanceof Sub)) {
|
|
throw new IllegalArgumentException();
|
|
}
|
|
return obj.calculate();
|
|
}
|
|
}
|
|
class Super {
|
|
native @NotNull String calculate();
|
|
}
|
|
class Sub extends Super {
|
|
native @Nullable String calculate();
|
|
} |