mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-24 04:07:09 +07:00
25 lines
456 B
Java
25 lines
456 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
class Test {
|
|
private void test2(@NotNull Object bar) {
|
|
|
|
}
|
|
private Object test(Object foo, Object bar) {
|
|
if (foo == null) {
|
|
System.out.println(<caret>null);
|
|
System.out.println(foo);
|
|
return foo;
|
|
}
|
|
if (bar == null) {
|
|
test2(bar);
|
|
}
|
|
return foo;
|
|
}
|
|
|
|
public void testDontReplaceQualifierWithNull(Object bar) {
|
|
if (bar == null) {
|
|
bar.hashCode();
|
|
}
|
|
}
|
|
|
|
} |