mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
12 lines
304 B
Java
12 lines
304 B
Java
import org.jetbrains.annotations.Nullable;
|
|
|
|
interface Foo {
|
|
void test(@Nullable String s);
|
|
}
|
|
|
|
class Bar implements Foo {
|
|
@Override
|
|
public void test(String s) {
|
|
System.out.println(s.<warning descr="Method invocation 'trim' may produce 'NullPointerException'">trim</warning>());
|
|
}
|
|
} |