blob: 395fd486c388efdf008daa0c59b057df91c23c61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
class Test {
private void test2(@NotNull Object bar) {}
void println(@Nullable Object o) {}
private Object test(Object foo, Object bar) {
if (foo == null) {
println(<caret>null);
println(foo);
return foo;
}
if (bar == null) {
test2(bar);
}
return foo;
}
public void testDontReplaceQualifierWithNull(Object bar) {
if (bar == null) {
bar.hashCode();
}
}
}
|