mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
17 lines
315 B
Java
17 lines
315 B
Java
class X {
|
|
interface I {
|
|
int get();
|
|
}
|
|
|
|
interface J {
|
|
Integer get();
|
|
}
|
|
|
|
I is = <warning descr="Use of 'X::m' would need unboxing which may produce 'java.lang.NullPointerException'">X::m</warning>;
|
|
J j = X::m;
|
|
|
|
@org.jetbrains.annotations.Nullable
|
|
static Integer m() {
|
|
return null;
|
|
}
|
|
} |