mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 11:40:50 +07:00
21 lines
557 B
Java
21 lines
557 B
Java
import foo.Nullable;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
class Foo {
|
|
void foo1(List<Integer> list) {
|
|
for (@Nullable Integer i : list) {
|
|
System.out.println(<warning descr="Method invocation 'i.intValue()' may produce 'java.lang.NullPointerException'">i.intValue()</warning>);
|
|
}
|
|
}
|
|
void foo2(List<@Nullable Integer> list) {
|
|
for (@Nullable Integer i : list) {
|
|
System.out.println(<warning descr="Method invocation 'i.intValue()' may produce 'java.lang.NullPointerException'">i.intValue()</warning>);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|