mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
20 lines
401 B
Java
20 lines
401 B
Java
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Zoo2 {
|
|
|
|
void foo(@Nullable final Object foo, @Nullable final Object bar) {
|
|
if (foo == null) {
|
|
return;
|
|
}
|
|
|
|
new Runnable() {
|
|
int hc = foo.hashCode();
|
|
int hc2 = bar.<warning descr="Method invocation 'hashCode' may produce 'NullPointerException'">hashCode</warning>();
|
|
|
|
public void run() {
|
|
}
|
|
}.run();
|
|
}
|
|
|
|
}
|