mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 11:40:50 +07:00
22 lines
485 B
Java
22 lines
485 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Test {
|
|
void f(@Nullable final Object x) {
|
|
if (x != null) {
|
|
class C {
|
|
C(@NotNull Object x) {
|
|
}
|
|
|
|
C() {
|
|
this(x);
|
|
}
|
|
}
|
|
}
|
|
class Local {
|
|
void s(@Nullable String s) {
|
|
final int i = <warning descr="Method invocation 's.hashCode()' may produce 'java.lang.NullPointerException'">s.hashCode()</warning>;
|
|
}
|
|
}
|
|
}
|
|
} |