blob: b991cbf5af6d44ea83f4fa5f9c5daab86273a64e [file] [log] [blame]
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>;
}
}
}
}