mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 02:15:59 +07:00
14 lines
285 B
Java
14 lines
285 B
Java
import org.jetbrains.annotations.Nullable;
|
|
|
|
class Test {
|
|
void method(@Nullable String o) {}
|
|
|
|
void method(@Nullable Integer o) {}
|
|
|
|
private void test(String foo) {
|
|
if (foo == null) {
|
|
method(<warning descr="Value 'foo' is always 'null'"><caret>foo</warning>);
|
|
}
|
|
}
|
|
|
|
} |